Рекурсивный акроним словосочетания «PHP: Hypertext Preprocessor»
Добро пожаловать на форум PHP программистов!
За последние 24 часа нас посетили 17204 программиста и 1834 робота. Сейчас ищут 1638 программистов ...
Net_FTP::execute()
Вернуться к: Net_FTP
Net_FTP::execute()
Net_FTP::execute() – executes a command on the server.
Synopsis
require_once 'Net/FTP.php';
mixed Net_FTP::execute ( string $command )
Executes a given command on the server (the SITE EXEC command is added by the method).
Parameter
-
string $command - The command to be executed (without SITE EXEC).
Return value
mixed - true on success, otherwise PEAR::Error.
Throws
The returned PEAR_Error object in case of an error is specific. There is only one errornumber which may occur. The message given by this error will contain the directory where the error occurred in "Execution of command '$command' failed". operation fails.
Note
This function can not be called statically.
Example
Using execute()
<?php
$test->execute($myCommand);
?>
Вернуться к: Net_FTP