Funkce PHP ftp_raw().
Příklad
Připojte se k FTP serveru a spusťte příkazy:
<?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");
?>
Definice a použití
Funkce ftp_raw() odešle nezpracovaný příkaz na FTP server.
Syntax
ftp_raw(ftp_conn, command);
Hodnoty parametrů
Parameter | Description |
---|---|
ftp_conn | Required. Specifies the FTP connection to use |
command | Required. Specifies the command to execute |
Technické údaje
Návratová hodnota: | Odpověď ze serveru jako pole řetězců |
---|---|
Verze PHP: | 5+ |
❮ Referenční příručka PHP FTP