Re: Re: fwrite/fclose troubles
| From: | Mark Weaver | Date: | Sat, 22 Mar 2008 15:08:29 +0000 |
| Subject: | Re: Re: fwrite/fclose troubles | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-271972@lists.php.net to get a copy of this message | ||
Al wrote:
Seems like this does what you are attempting. if(DEBUG_MODE) // TRUE for debug only {If I understand this correctly this "if" statement directs php to check the main ini config file and if certain conditions are met then it displays the information in the browser window. Useful, but it would seem, at least to me at the moment, that if the script fails before it's even able to get anything to the screen then nothing gets displayed. Markini_set("display_errors", "on"); //use off if users will see themerror_reporting(E_ALL);echo '<span style="color:red">Error display and logging on</span> ';}