PHP ftp_pwd() Function
Complete PHP FTP Reference Manual
Definition and Usage
The ftp_pwd() function returns the current directory name of a specified FTP connection.
Syntax
ftp_pwd(ftp_connection)
| Parameters | Description |
|---|---|
| ftp_connection | Required. Specifies the FTP connection to use. |
Example
"; // change directory to images ftp_chdir($conn,"images"); // print current directory echo ftp_pwd($conn); ftp_close($conn); ?>The code above will output:
/
/images
Complete PHP FTP Reference Manual