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.