FTP_RAW(3) 1 FTP_RAW(3)
ftp_raw - Sends an arbitrary command to an FTP server
SYNOPSIS
array ftp_raw (resource $ftp_stream, string $command)
DESCRIPTION
Sends an arbitrary $command to the FTP server.
PARAMETERS
o $ftp_stream
- The link identifier of the FTP connection.
o $command
- The command to execute.
RETURN VALUES
Returns the server's response as an array of strings. No parsing is performed on the response string, nor does ftp_raw(3) determine if the
command succeeded.
EXAMPLES
Example #1
Using ftp_raw(3) to login to an FTP server manually.
<?php
$fp = ftp_connect("ftp.example.com");
/* This is the same as:
ftp_login($fp, "joeblow", "secret"); */
ftp_raw($fp, "USER joeblow");
ftp_raw($fp, "PASS secret");
?>
SEE ALSO
ftp_exec(3).
PHP Documentation Group FTP_RAW(3)