Using PHP, I would like to have a simple config.php file that enables me to check whether I am on localhost vs mydomain.com.
For example, on 'localhost':
$path = '/'
But when I upload to my server ('mydomain.com'), I'd like to have the path be:
$path = '/testing/
I'd like to be able to check whether I am developing locally vs when the site is uploaded to my ftp.