irshkur Posted November 1, 2012 Share Posted November 1, 2012 Heey guys and gals I'm trying to find a way to create script that would take any page from the web, copy that and upload it to my server I need to do so in order to be able to track clicks to those pages without the need for my customers to install the tracking code Here is a good example what I want: May be even not copy-upload but just cloak the page this way so that ip appears on the web under my domain so I can track it internally. Any suggestion is welcome and very much appreciated Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/270165-copy-page-from-the-web-and-upload-it-on-my-server/ Share on other sites More sharing options...
smoseley Posted November 2, 2012 Share Posted November 2, 2012 file_put_contents('/path/to/file', file_get_contents('http://www.any-page-from-the-web.com')); Quote Link to comment https://forums.phpfreaks.com/topic/270165-copy-page-from-the-web-and-upload-it-on-my-server/#findComment-1389474 Share on other sites More sharing options...
Pikachu2000 Posted November 2, 2012 Share Posted November 2, 2012 If you want the functionality of the product in the link, why don't you just download it and use it? It is free, after all. Quote Link to comment https://forums.phpfreaks.com/topic/270165-copy-page-from-the-web-and-upload-it-on-my-server/#findComment-1389490 Share on other sites More sharing options...
irshkur Posted November 2, 2012 Author Share Posted November 2, 2012 file_put_contents('/path/to/file', file_get_contents('http://www.any-page-from-the-web.com')); Thanks, I'll try that. If you want the functionality of the product in the link, why don't you just download it and use it? It is free, after all. Hey, thanks for the suggestion, but I need the same functionaity web based Quote Link to comment https://forums.phpfreaks.com/topic/270165-copy-page-from-the-web-and-upload-it-on-my-server/#findComment-1389658 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.