News:

Click here for Toll-Free Service for your business starting at $2.00 per month

Main Menu

can I turn of error reporting for 1 PAGE ONLY ???

Started by sixthcrusifix, December 03, 2005, 01:34:57 PM

Previous topic - Next topic

sixthcrusifix

I have one page that is used to str_replace stuff with another page. Unfortunately it uses some variables that are defined on the page that includes it(Actually in a page included by the page that includes it). But since the variables are not defined on this page I get undefined variable errors.

But everything works just fine. . . so I really just don't want errors for this page only.
Visite me website at http://www.sixthcrusifix.com

brainiac744

Here, just add this code to the page that you want to turn error reporting off for:


<?php
//Turn off error reporting
error_reporting(0);
?>