array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'de', ), 'this' => array ( 0 => 'function.ftp-raw.php', 1 => 'ftp_raw', ), 'up' => array ( 0 => 'ref.ftp.php', 1 => 'FTP-Funktionen', ), 'prev' => array ( 0 => 'function.ftp-quit.php', 1 => 'ftp_quit', ), 'next' => array ( 0 => 'function.ftp-rawlist.php', 1 => 'ftp_rawlist', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'de', 'path' => 'reference/ftp/functions/ftp-raw.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 5, PHP 7, PHP 8)
ftp_raw — Sendet ein beliebiges Kommando an den FTP-Server
Sendet ein beliebiges Kommando command
an den
FTP-Server.
Gibt die Serverantwort als ein Array von Zeichenketten zurück, oder null
im Fehlerfall.
Die Antwort wird nicht ausgewertet und ftp_raw() versucht auch nicht
festzustellen, ob das Kommando erfolgreich war.
Version | Beschreibung |
---|---|
8.1.0 |
Der Parameter ftp erwartet nun eine
FTP\Connection-Instanz; vorher wurde eine Ressource
erwartet.
|
Beispiel #1 ftp_raw() für den manuellen Login auf einem FTP-Server nutzen.
<?php
$ftp = ftp_connect("ftp.example.com");
/* Dies entspricht:
ftp_login($ftp, "joeblow", "secret"); */
ftp_raw($ftp, "USER joeblow");
ftp_raw($ftp, "PASS secret");
?>