alexvorn2 Posted January 13, 2010 Share Posted January 13, 2010 What codes i must use to dowload a file from the web and save it in the server? Quote Link to comment https://forums.phpfreaks.com/topic/188368-downloading-a-file/ Share on other sites More sharing options...
MadTechie Posted January 13, 2010 Share Posted January 13, 2010 you need to read the file from the remote source (you need allow_url_fopen on), then write the file to a local file, if its small you could use file_get_contents file_put_contents for larger files fopen would be better. Quote Link to comment https://forums.phpfreaks.com/topic/188368-downloading-a-file/#findComment-994468 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.