Funzione PHP ftp_raw()
Esempio
Collegati al server FTP ed esegui i comandi:
<?php
// connect to FTP server
$ftp_server = "ftp.example.com";
$ftp_conn = ftp_connect($ftp_server) or die("Could not connect to $ftp_server");
// the two lines below is the same as: ftp_login($ftp_conn,"john","secretpassword");
ftp_raw($ftp_conn, "USER john");
ftp_raw($ftp_conn, "PASS secretpassword");
?>
Definizione e utilizzo
La funzione ftp_raw() invia un comando non elaborato al server FTP.
Sintassi
ftp_raw(ftp_conn, command);
Valori dei parametri
Parameter | Description |
---|---|
ftp_conn | Required. Specifies the FTP connection to use |
command | Required. Specifies the command to execute |
Dettagli tecnici
Valore di ritorno: | La risposta dal server come matrice di stringhe |
---|---|
Versione PHP: | 5+ |
❮ Riferimento FTP PHP