Easy Tutorial
❮ Func String Addslashes Func Cal Easter Days ❯

PHP ftp_chdir() Function



Definition and Usage

The ftp_chdir() function changes the current directory on the FTP server to the specified directory.

If successful, the function returns TRUE. If it fails, it returns FALSE and a warning.

Syntax

Parameter Description
ftp_connection Required. Specifies the FTP connection to use.
directory Required. Specifies the directory to switch to.

Example

The above code will output:

❮ Func String Addslashes Func Cal Easter Days ❯