पीएचपी ftp_raw () फ़ंक्शन
उदाहरण
FTP सर्वर से कनेक्ट करें और कमांड निष्पादित करें:
<?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");
?>
परिभाषा और उपयोग
Ftp_raw() फंक्शन FTP सर्वर को एक रॉ कमांड भेजता है।
वाक्य - विन्यास
ftp_raw(ftp_conn, command);
पैरामीटर मान
Parameter | Description |
---|---|
ftp_conn | Required. Specifies the FTP connection to use |
command | Required. Specifies the command to execute |
टेक्निकल डिटेल
प्रतिलाभ की मात्रा: | स्ट्रिंग्स की एक सरणी के रूप में सर्वर से प्रतिक्रिया |
---|---|
पीएचपी संस्करण: | 5+ |
पीएचपी एफ़टीपी संदर्भ