Welcome Guest, Not a member yet? Register   Sign In
Help with displaying error messages
#6

[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


Messages In This Thread
Help with displaying error messages - by El Forum - 07-19-2012, 08:46 PM
Help with displaying error messages - by El Forum - 07-19-2012, 11:12 PM
Help with displaying error messages - by El Forum - 07-20-2012, 08:01 AM
Help with displaying error messages - by El Forum - 07-23-2012, 10:06 AM
Help with displaying error messages - by El Forum - 07-23-2012, 10:17 AM
Help with displaying error messages - by El Forum - 07-23-2012, 10:20 AM
Help with displaying error messages - by El Forum - 07-23-2012, 10:42 AM



Theme © iAndrew 2016 - Forum software by © MyBB