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

PHP ftp_raw() Function

PHP ftp_raw() Function


PHP FTP Reference Manual Complete PHP FTP Reference Manual


Definition and Usage

The ftp_raw() function sends a raw command to the FTP server.

Syntax

ftp_raw(ftp_connection,command)

Parameters Description
ftp_connection Required. Specifies the FTP connection to use.
command Required. Specifies the command to execute.

Tips and Notes

**Note:** This function returns the server response as an array of strings. No parsing is performed, and ftp_raw() does not check whether the command is correct.


Example

The code above will output:

Array ([0] => 331 User admin, password please)

Array ([0] => 230 Password Ok, User logged in)


PHP FTP Reference Manual Complete PHP FTP Reference Manual