PHP.nl

ftp_raw

ftp_raw

Sends an arbitrary command to an FTP server

 **ftp_raw** FTP\Connection $ftp string $command

Sends an arbitrary to the FTP server. command

ftp``commandThe command to execute.

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

Voorbeeld: Using to login to an FTP server manually.

<?php
$ftp = ftp_connect("ftp.example.com");

/* This is the same as: 
   ftp_login($ftp, "joeblow", "secret"); */
ftp_raw($ftp, "USER joeblow");
ftp_raw($ftp, "PASS secret");
?>

ftp_exec