I get this error;
Notice: Undefined offset: 4 in /nas/students/m/mcooke/unix/public_html/ebassignment/list.php on line 27
In some languages you can tell the PC to ignore certain types of error or not display any error message. Anyone know how to do this in PHP? The php files I have are fine but I just wont to hide the error message. Bad practice I know but I need a temporary fix.
Error handling
Moderator: General Moderators
Re: Error handling
Hi,
Fix: error_reporting
If you get that notice, your php file isn't fine.phpPain wrote:The php files I have are fine but I just wont to hide the error message.
Fix: error_reporting
- novice4eva
- Forum Contributor
- Posts: 327
- Joined: Thu Mar 29, 2007 3:48 am
- Location: Nepal
Re: Error handling
error_reporting(0);//COMPLETELY DISABLE
error_reporting(1);//DISPLAY ERRORS BUT NOT WARNINGS
error_reporting(1);//DISPLAY ERRORS BUT NOT WARNINGS