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. Quote Link to comment 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); ?> 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.