I'm looking for some kind of script or code that can do the following: Whenever a person visits: http://mysite.com/file.php it'll secretly load the link of another website http://targetsite.com and grab the entire content on the page based on what the visitor would see if he had visited http://targetsite.com directly. It would log the content on my server as a .txt file or something like that Heres a diagram to make it more clear: http://i.imgur.com/SwYAE.png
libcurl will let you do that. It's probably the easiest screen scraper there is. (That's what you're doing, screen-scraping and keeping the entire screen.)