colinireland Posted November 30, 2011 Share Posted November 30, 2011 Hello, I am looking for a push in the right direction. I would like to be able to view a website that is duplicated on many servers by specifying the IP address. Similar to how one would use the hosts file. I can do this using netcat nc 1.2.3.4 80 Host: example.com GET /contact-us.html <CR><CR> Can someone tell me how I would go about porting this to PHP? I would just like to set up a small page on my webserver where I can enter the domain and IP address and have the page displayed back to me. Thanks Colin Quote Link to comment https://forums.phpfreaks.com/topic/252117-using-php-in-a-similar-way-to-using-etchosts-file/ Share on other sites More sharing options...
trq Posted November 30, 2011 Share Posted November 30, 2011 Google a tutorial on creating a php proxy. Quote Link to comment https://forums.phpfreaks.com/topic/252117-using-php-in-a-similar-way-to-using-etchosts-file/#findComment-1292568 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.