PHP ftp_cdup() Function

The ftp_cdup() function is used to change the current directory to the parent directory.

bool ftp_cdup ( resource $ftp_stream )

Changes to the parent directory.

Example -

ParameterDescription
ftp_streamThe link identifier of the FTP connection