دالة PHP 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 |
تفاصيل تقنية
قيمة الإرجاع: | الاستجابة من الخادم كمصفوفة من السلاسل |
---|---|
إصدار PHP: | 5+ |
❮ مرجع PHP FTP