PHP ftp_pwd() Function

PHP FTP Reference : Change directory, then output directory name

Definition and Usage

The ftp_pwd() function returns the current directory name.

Syntax

ftp_pwd(ftp_conn);

Parameter Values

Parameter Description
ftp_conn Required. Specifies the FTP connection to use

Technical Details

Return Value: The current directory name on success, FALSE on failure
PHP Version: 4+

❮ PHP FTP Reference