PHP ftp_raw() Function

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

array ftp_raw ( resource $ftp_stream , string $command )

Sends an arbitrary command to the FTP server.

Example -

ParameterDescription
ftp_streamThe link identifier of the FTP connection
commandThe command to execute

Returns the server's response as an array of strings. No parsing is performed on the response string, nor does ftp_raw() determine if the command succeeded.