PHP ftp_site() Function
Complete PHP FTP Reference Manual
Definition and Usage
The ftp_site() function sends a SITE command to the FTP server.
SITE commands are not standardized and vary from server to server. They are useful for handling file permissions or group relationships.
Returns TRUE on success, or FALSE with a warning on failure.
Syntax
ftp_site(ftp_connection,command)
| Parameters | Description |
|---|---|
| ftp_connection | Required. Specifies the FTP connection to use. |
| command | Required. Specifies the SITE command to send to the FTP server. |
Tips and Notes
**Tip:** To see which commands are available, send the REMOTEHELP command via ftp_raw().
Example
Complete PHP FTP Reference Manual