|
Posted by Jerry Stuckle on 05/15/07 05:22
laredotornado@zipmail.com wrote:
> Hi,
>
> I'm using PHP 4.4.4. In our php.ini file we have notices and warnings
> turned off. However, I would like to enable them for a small subset
> of pages. I know the pages specifically, but I would also settle for
> enabling notices and warnings for a certain directory.
>
> Is this possible, and if so, how?
>
> Thanks, - Dave
>
Dave,
Probably the most accurate way is to add to the top of the pages you
wish to have errors shown:
<?php
error_reporting(E_ALL);
ini_set('display_errors', 1);
?>
You could also add to an .htaccess (or the appropriate directory entry
in your httpd.conf file)
php_value error_reporting 6143
php_value display_errors 1
(6143 is is the decimal value for E_ALL).
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Navigation:
[Reply to this message]
|