PHP ftp_mlsd() လုပ်ဆောင်ချက်
ဥပမာ
"ပုံများ" လမ်းညွှန်မှ ဖိုင်များစာရင်းကို ပြန်ပေးသည်-
<?php
// connect and login to FTP server
$ftp_server = "ftp.example.com";
$ftp_conn = ftp_connect($ftp_server) or die("Could not connect to $ftp_server");
$login = ftp_login($ftp_conn, $ftp_username, $ftp_userpass);
$dir = "/images";
$dirlist = ftp_mlsd($ftp_conn, $dir);
// output directory list
echo($dirlist);
// close connection
ftp_close($ftp_conn);
?>
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
ftp_mlsd() လုပ်ဆောင်ချက်သည် သတ်မှတ်ထားသော လမ်းကြောင်းရှိ ဖိုင်များစာရင်းကို ပြန်ပေးသည်။
အထားအသို
ftp_mlsd(ftp_conn, dir);
ကန့်သတ်တန်ဖိုးများ
Parameter | Description |
---|---|
ftp_conn | Required. Specifies the FTP connection to use |
dir | Required. Specifies the name of the directory to be listed. Use "." to get the current directory |
နည်းပညာဆိုင်ရာအသေးစိတ်
ပြန်ပို့တန်ဖိုး- | အောင်မြင်မှုအပေါ် သတ်မှတ်ထားသော လမ်းညွှန်မှ ဖိုင်အချက်အလက်ပါသည့် အခင်းအကျင်းတစ်ခု၊ ပျက်ကွက်မှုတွင် မှားနေသည်။ |
---|---|
PHP ဗားရှင်း- | 7.2+ |
❮ PHP FTP အကိုးအကား