Manuel Pear

Net_FTP::execute()

Net_FTP::execute() -- executes a command on the server.

Synopsis

  1. <?php
  2. require_once 'Net/FTP.php
  3. ?> 

mixed Net_FTP::execute (string $command)

Description

Executes a given command on the server (the SITE EXEC command is added by the method).

Paramètres

  • string $command - The command to be executed (without SITE EXEC).

Valeur retournée

mixed - true on success, otherwise PEAR::Error.

Valeurs renvoyées

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

Cette fonction ne peut pas être appelée de façon statique.

Exemple

Exemple 54-1. Using execute()

  1. <?php
  2.    
  3.    $test->execute($myCommand);  
  4.  
  5.  
  6. ?> 

Remonter Remonter
L'éditeur javascript - CSS - Gentoo - Tutoriaux PHP - Tutoriels PHP - Bretagne - php - Moto - Kit graphique