RE: [PHP] Error reporting - how to turn it on?
| From: | John W. Holmes | Date: | Wed, 09 Apr 2003 02:21:18 +0000 |
| Subject: | RE: [PHP] Error reporting - how to turn it on? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-142986@lists.php.net to get a copy of this message | ||
If you're using apache, make an .htaccess file with the following line.
php_value display_errors on
Save it as .htaccess in your web root and now look at your phpinfo()
page to see if the change has taken.
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/
> -----Original Message-----
> From: Miles Thompson [mailto:milesthompson@ns.sympatico.ca]
> Sent: Tuesday, April 08, 2003 9:55 PM
> To: php-general@lists.php.net
> Subject: [PHP] Error reporting - how to turn it on?
>
> I just opened up a test account with experthost.ca - created database
&
> uploaded data. Yes, everything is there and phpMyAdmin doe work.
>
> Uploaded my logon script, tried it - nothing, not even an error.
Amended
> the script so it would throw an error. Tried the same thing with
another
> file, an intentional error, that is. Nothing.
>
> phpinfo(), core functions, indicates that display_errors and
> display_startup_errors are both OFF, and that error_reporting is set
to
> 2039. (If you want to check yourself the URL is
> http://66.165.93.79/phpinfo.php )
>
> I added this code to the script:
> error_reporting (E_ERROR | E_WARNING | E_PARSE | E_NOTICE);
> expecting that would override the settings and report errors.
>
> Nothing. Nada. Zip.
>
> What's the obvious step I'm missing?
>
> TIA - Miles
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php