Hello, I'm looking for a php scfript that will work as a proxy to hit a website by passing DNS. For example, lets say I'm doing development work on another server on ip 8.8.8.8, but the live site is on ip 8.8.4.4. I'd like this proxy script to hit the 8.8.8.8 so I don't have to edit my hosts file. Does such thing exist? Or what would this be called? Any help much appreciated.
Why don't you just add a dev-subdomain or something? I still don't really understand why this would matter, regardless - if you're doing the dev-work externally, why does it matter what DNS you have? Especially if it's a separate server - just call the site something else for the DNS-request - it shouldn't matter what it's called for the site itself, so... I don't really understand why this is a problem.
Thanks for the response. But CMS's like Wordpress, have the site URL get hard coded into the database. It would be less work for me if I could setup a site with the true URL. And then give my clients a URL to preview it. changing the hosts file is fine for me, but I'd rather not have to explain it to the client.
Ah, I see - yet another shortcoming for WP (there is no reason the full site URL should be stored in the database, of course - just the specific - not http://example.com/test, just /test). But okay, then you will need something else, yes. However, a simple search/replace on the database will fix that.
Yup. yeah, I can be done in it's current state, but a php script or something would work a lot better. I wonder if something could be made to do this.