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.
Parameter | Description |
---|---|
ftp_stream | The link identifier of the FTP connection |
command | The 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.