Home > PHP > Function > FTP > ftp_raw()

ftp_raw()

ftp_raw - Sends an arbitrary command to an FTP server

Syntax

array ftp_raw (resource $ftp_stream, string $command)

Arguments

  • ftp_stream - The link identifier of the FTP connection.
  • command - The command to execute.

Description

Sends an arbitrary command to the FTP server.

Version

PHP 5

Return value

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.