winmastergames Posted January 15, 2008 Share Posted January 15, 2008 Is it possible to have a user type a link of a Direct File Download and make the server download the file and give the user the link, Whats the easiest way to do this Please and Thank You Quote Link to comment Share on other sites More sharing options...
interpim Posted January 15, 2008 Share Posted January 15, 2008 what are you asking exactly? Do you want your server to transfer a file from an online download and store it, then provide a link to the user on that server? If so, why not just download the file directly? Quote Link to comment Share on other sites More sharing options...
winmastergames Posted January 15, 2008 Author Share Posted January 15, 2008 well Exactly i want the server to download a file then i want to be able to use the new download link (Link to the file downloaded) in the php script to do another action in the script Sorry didnt explain it that well Quote Link to comment Share on other sites More sharing options...
tibberous Posted January 15, 2008 Share Posted January 15, 2008 $newpath = "downloaded.flv"; @file_put_contents($newpath, file_get_contents("http://www.youtube.com/file.flv"), LOCK_EX); if(!file_exists($newpath)) die("File not created"); // Do whatever else you want to do. Quote Link to comment Share on other sites More sharing options...
winmastergames Posted January 15, 2008 Author Share Posted January 15, 2008 Thanks ill try it out Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.