Define :
In this tutorial we learned about PHP ftp_chdir() Function.This PHP ftp_chdir() Function is inbuilt function in php.This function is used to sets the permissions on the specified remote file to permissions. The function returns the new file permissions on success or false on error.
ftp_chmod(ftp, permissions, filename)
ftp |
Required. Specify the FTP connection to use. |
permissions |
Required. Specify the new permissions, given as an octal value (starting with 0). The parameter consists of four numbers:
|
filename |
Required. Specify the file to set permissions on. |
Given below example show the usage of ftp_chmod() function.
Note: Many FTP servers do not support this command!
Output : Successfully connected to www.webdesigninghouse.com! Couldn't connect as user Connection closed successfully!