We use the following function to auto detect if we are on a machine internally or on a live server and then choose the appropriate configs for various components:
'127.0.0.1' == $_SERVER["REMOTE_ADDR"]
This will never evaluate as TRUE on your live system. :)
TRUE