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? 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. Link to comment https://forums.phpfreaks.com/topic/188368-downloading-a-file/#findComment-994468 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.