php man page for ftp_raw

Query: ftp_raw

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

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)
Related Man Pages
ftp_connect(3) - php
ftp_nlist(3) - php
ftp_get_option(3) - php
ftp_fget(3) - php
ftp_nb_fget(3) - php
Similar Topics in the Unix Linux Community
Compare 2 Directories