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.
You could do something like:
Then just check whether it is true or false.
Another option is to simply use separate config files, so the config.php on the server is
and the config.php on localhost is