PHP ftp_chdir() FunctionThe ftp_chdir() function is used to change the current directory to a specified directory on an FTP server. This function was introduced in PHP 4. Syntax:
ReturnsThis method returns TRUE on success or FALSE on failure. Example 1ExplanationIf the directory is changed, it echo can change the current directory. If not changed, it echo couldn't change directory. By using ftp_chdir( ) function, we can able to change the directory. Example 2In the above program, the directory is changed by using ftp_chdir( ) function. If the directory is changed, it prints chdir not successful. Next TopicPHP FTP |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India