[eluser]prasie[/eluser]
Code:
<?php
/*
*---------------------------------------------------------------
* APPLICATION ENVIRONMENT
*---------------------------------------------------------------
*
* You can load different configurations depending on your
* current environment. Setting the environment also influences
* things like logging and error reporting.
*
* This can be set to anything, but default usage is:
*
* development
* testing
* production
*
* NOTE: If you change these, also change the error_reporting() code below
*
*/
ini_set('pcre.backtrack_limit',1000000);
date_default_timezone_set('Asia/Jakarta');
//define('ENVIRONMENT', 'production');
define('ENVIRONMENT', 'development');
/*
*---------------------------------------------------------------
* ERROR REPORTING
*---------------------------------------------------------------
*
* Different environments will require different levels of error reporting.
* By default development will show errors but testing and live will hide them.
find this code should be var/www/html or your current folder
//define('ENVIRONMENT', 'production');
define('ENVIRONMENT', 'development');
production means not showing error and ommit notice or warning
development means showing all error message
this file name index.php