Re: Re: fwrite/fclose troubles

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Al wrote:
Seems like this does what you are attempting.
if(DEBUG_MODE) // TRUE for debug only
{
    ini_set("display_errors", "on"); //use off if users will see them

    error_reporting(E_ALL);

    echo '<span style="color:red">Error display and logging on</span>  ';
}


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.

Mark

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux