Website preview script
Posted: Wed Feb 29, 2012 7:56 am
Hello,
I am very new to PHP coding. I am trying to achieve a task via PHP, regarding which I have been googling around for a few days and now come up with emtpy hands!
Ok, what I need to write is a "website preview script". That is I need to display a website hosted on serverA and pointing elsewhere, from ServerA ( via curl possibly ).
For example: I have configured techsware.in and google.com on ServerA ( of course google.com pointing to their IP ). I need to display the contents of google.com "on my server" , if I call http://techsware.in/google.php which has some curl coding in it! Note, what I have is the domain name ( google.com ) and the IP on which it is hosted on serverA to achieve this. Any way to achieve this?
PS: web server is apache and php version is 5.2
Any help will be highly appreciated!
Thank you,
Nibin.
I am very new to PHP coding. I am trying to achieve a task via PHP, regarding which I have been googling around for a few days and now come up with emtpy hands!
Ok, what I need to write is a "website preview script". That is I need to display a website hosted on serverA and pointing elsewhere, from ServerA ( via curl possibly ).
For example: I have configured techsware.in and google.com on ServerA ( of course google.com pointing to their IP ). I need to display the contents of google.com "on my server" , if I call http://techsware.in/google.php which has some curl coding in it! Note, what I have is the domain name ( google.com ) and the IP on which it is hosted on serverA to achieve this. Any way to achieve this?
PS: web server is apache and php version is 5.2
Any help will be highly appreciated!
Thank you,
Nibin.