Why is my ENVIRONMENT constant, "development" if my codeigniter app is online? |
(01-16-2018, 01:46 PM)desbest Wrote: I just changed the line on index.php to read I've had several cases in Apache shared hosting setups where mod_env was not enabled. The following takes care of those by assuming that if $_SERVER['CI_ENV'] is not set (as it should have been in .htaccess) it's because we're on the live site. PHP Code: define('ENVIRONMENT', isset($_SERVER['CI_ENV']) ? $_SERVER['CI_ENV'] : 'production'); |
Messages In This Thread |
Why is my ENVIRONMENT constant, "development" if my codeigniter app is online? - by desbest - 01-16-2018, 01:18 PM
RE: Why is my ENVIRONMENT constant, "development" if my codeigniter app is online? - by Elias - 01-16-2018, 01:34 PM
RE: Why is my ENVIRONMENT constant, "development" if my codeigniter app is o... - by desbest - 01-16-2018, 01:46 PM
RE: Why is my ENVIRONMENT constant, "development" if my codeigniter app is o... - by dave friend - 01-16-2018, 02:59 PM
|