Manuel Pear

Net_FTP::pwd()

Net_FTP::pwd() -- returns the directory on the server you are currently in.

Synopsis

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

mixed Net_FTP::pwd ()

Description

Returns the directory currently selected on the server.

Valeur retournée

mixed - path (absolute) as string on success, otherwise PEAR::Error.

Valeurs renvoyées

The returned PEAR_Error object in case of an error is unspecific. You can ignore the errornumber and errormessage, because only "Could not determine the actual path" will be returned if the operation fails.

Note

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

Exemple

Exemple 54-1. Using pwd()

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

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