abdulr Posted July 15, 2007 Share Posted July 15, 2007 I need to fetch a file by providing the url and save it in my server. Please help. Link to comment https://forums.phpfreaks.com/topic/60045-http-file-fetch/ Share on other sites More sharing options...
infid3l Posted July 15, 2007 Share Posted July 15, 2007 I need to fetch a file by providing the url and save it in my server. Please help. <?php $contents = file_get_contents("http://www.google.com"); file_put_contents("saved.html", $contents); ?> Link to comment https://forums.phpfreaks.com/topic/60045-http-file-fetch/#findComment-298662 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.