PHP ftp_nb_continue()ฟังก์ชัน
ตัวอย่าง
ดาวน์โหลดไฟล์จากเซิร์ฟเวอร์ ดาวน์โหลดต่อ (ไม่บล็อก) ในขณะที่ทำอย่างอื่น:
<?php
// initiate download
$d = ftp_nb_get($ftp_conn, "local.txt", "server.txt", FTP_BINARY)
while ($d == FTP_MOREDATA)
{
// do whatever you want
// continue downloading
$d = ftp_nb_continue($ftp_conn);
}
if ($d != FTP_FINISHED)
{
echo "Error downloading file.";
exit(1);
}
?>
ความหมายและการใช้งาน
ฟังก์ชัน ftp_nb_continue() ยังคงรับ/ส่งไฟล์ไปยังเซิร์ฟเวอร์ FTP
ไวยากรณ์
ftp_nb_continue(ftp_conn);
ค่าพารามิเตอร์
Parameter | Description |
---|---|
ftp_conn | Required. Specifies the FTP connection to use |
รายละเอียดทางเทคนิค
คืนมูลค่า: | ค่าใดค่าหนึ่งต่อไปนี้:
|
---|---|
รุ่น PHP: | 4.3+ |
❮ การอ้างอิง PHP FTP