formfields
Joined: 01 Aug 2005 Posts: 465
|
Posted: Mon Jul 24, 2006 4:01 pm Post subject: Turning Off Error Notices |
|
|
On some configurations you may receive Notice errors like the following:
| Code: |
Notice: Use of undefined constant AD_MAN_SESSION_PREFIX - assumed 'AD_MAN_SESSION_PREFIX' in /var/www/adMan/accounts.php on line 20
Notice: Undefined variable: totalDays in /var/www/adMan/admin/viewAdSchedule.php on line 111
|
There are 2 ways to turn of these notice messages:
1. If you administrative access to your webserver you can modify the php.ini file and make sure that your error_reporting line looks like:
| Code: |
error_reporting = E_ALL & ~E_NOTICE
|
2. You can edit /adMan/globals.php and insert the following line at the very top of the file:
| Code: |
<? error_reporting(E_ALL ^ E_NOTICE); ?>
|
|
|