I have a different config files for a script that runs both on a dev and production server.
The question is, can I detect somehow which is which ?
I have a different config files for a script that runs both on a
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Have a different bootstrap file to include depending on the server you’re on. So
On the production box, bootstrap.php will have a constant
IS_DEV = FALSEOn the development box, bootstrap.php will have the same constant
IS_DEV = TRUESo the same script will include the same file name, bootstrap.php, but the contents of bootstrap will have different values for the
IS_DEVconstant variable.