我有个FTP账户。我想用文件连接到FTP。这个是可能的吗?如果没有,我怎么做呢?
我想这样做的上传脚本类似hotfile或rapidshare。
发布于 2011-08-21 16:19:24
如果我从你对“创世纪”回答的评论中理解了你想做什么,你需要做的是:
$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;发布于 2011-08-21 16:01:48
file_get_contents('ftp://username:password@host.com/');https://stackoverflow.com/questions/7139364
复制相似问题