Reply to Re: setting error level for a particular directory / page

Your name:

Reply:


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
==================

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация