Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

PHP ftp_site() Function

PHP ftp_site() Function


PHP FTP Reference Manual 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


PHP FTP Reference Manual Complete PHP FTP Reference Manual