我有一個FTP帳戶。我想連接到FTP與file_get_contents。這可能嗎?如果不是,我該怎麼做?連接ftp帳戶與file_get_content功能
我想要做一個類似於hotfile或rapidshare的上傳腳本。
我有一個FTP帳戶。我想連接到FTP與file_get_contents。這可能嗎?如果不是,我該怎麼做?連接ftp帳戶與file_get_content功能
我想要做一個類似於hotfile或rapidshare的上傳腳本。
如果我知道你想從@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;
file_get_contents('ftp://username:[email protected]/');
好主意:)即時嘗試。 –
你可以看到這裏的結果:http://ebookdownload1.com/denemeler/deneme.php。我想爲此用戶可以下載此文件。 –
你想讓他們通過FTP或HTTP做到這一點嗎? – DaveRandom
當你說‘我的帳戶是神祕的’你的意思它是FTPS/SFTP? – DaveRandom
@DaveRandom。沒有擔保只有密碼 –