Is it possible to check if the website (php) is running locally or on a hosted server?
I want to enable some logs if the website is running locally and I don't want these to appear on the site online..
I can set a variable $local=1;
but I'll have to change that before uploading.. is there anyway to automate this task?
Local Server : WampServer 2.0 / Apache WebServer: Apache