PHP ftp_pwd() Function

The ftp_pwd() function returns the current directory name.

string ftp_pwd ( resource $ftp_stream )

Example -

ParameterDescription
ftp_streamThe link identifier of the FTP connection

Returns the current directory name or FALSE on error.