CodeIgniter index.php Application Environment Declaration


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. if ($_SERVER['HTTP_HOST'] == 'localhost:8888') {
  2. define('ENVIRONMENT', 'development');
  3. } else {
  4. define('ENVIRONMENT', 'production');
  5. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.