FreePgs.com Forum

FreePgs Related => Support Requests => Topic started by: sixthcrusifix on December 03, 2005, 01:34:57 PM

Title: can I turn of error reporting for 1 PAGE ONLY ???
Post by: sixthcrusifix on December 03, 2005, 01:34:57 PM
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.
Title: Re: can I turn of error reporting for 1 PAGE ONLY ???
Post by: brainiac744 on December 03, 2005, 04:43:31 PM
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);
?>