How do i know that this is global or local environment for my php pages
means i m using Google map Key there is two different key one for local server and another for that domain where it has to be shown, so how do i write the code for both keys together and page automaticaaly detect that which key have to be use
these things i also want to apply for config files i want that when site is on the web server , config files take username and password of that server otherwise take local user and password.