PHP ftp_cdup() FunctionThe ftp_cdup() function is used to change the current directory to the parent directory. This function was introduced in PHP 4. Syntax:
ReturnsThe ftp_cdup( ) function returns TRUE on success or FALSE on failure. Example 1ExplanationIn the above example, by using the ftp_cdup() function we change the current directory to the parent directory. Example 2ExplanationIn the above example, by using ftp_chdir( ) function we change the directory and after that by using ftp_cdup( ) function we change the directory to the parent. Example 3ExplanationIn the above example, by using ftp_cdup( ) function we change the directory to parent directory.
Next TopicPHP FTP
|