Posts Tagged ‘auto_prepend_file’

Quickly Determine Local or Remote Copy of Your Website (with PHP)

Monday, September 15th, 2008

I do a lot of web development locally on my computer and I am always switching between local and remote servers using entries in the hosts file.  Because of this, it is hard to know if I’m actually looking at the correct version of my site.  Opera and Firefox both cache DNS to various degrees which makes it difficult to know if that change to the hosts file really did take effect.  I know you can disable the cache in Firefox — and probably Opera too — but I think this method is still useful.
(more…)

© 2009 Cory Mawhorter