[英]connect ftp account with file_get_content function
file_get_contents('ftp://username:password@host.com/');
如果我從對@genesis答案的評論中了解到您想做什么,那么您需要做的是:
$file = file_get_contents("derpost:pass**@ftp1.freakshare.com/Freez%20Screen%20Video%20Capture.lnk");
header('Content-Disposition: attachment; filename="image.jpg"'); // Change file name as appropriate
header('Content-Length: '.strlen($file));
header('Content-Type: image/jpeg'); // Change this MIME type as appropriate
echo $file;
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.