I have a development folder and production folder in my webspace to handles both the developement site and production site. I know there is a way to tell if the dbconnect.php script is being run from dev/includes or prod/includes and then based on that connect to either the database-dev or database-prod database, anyone know how I could do that?
