Re: Seeing parse errors?
| From: | Leif K-Brooks | Date: | Sat, 10 May 2003 00:06:01 +0000 |
| Subject: | Re: Seeing parse errors? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-147079@lists.php.net to get a copy of this message | ||
The problem is that PHP never runs the line changing error_reporting (or any other line) if there's a parse error. You need to change it somewhere else, a .htaccess file for instance.
news.php.net wrote:
Can I see parse errors? For example, a = 5; should generate a parse error, but all that happens is my php file quits processing at that point, and no error is returned to the html page (which also quits). The default for my server site is no display_errors, but I have successfully overridden that by placing, phpinfo(); ini_set("display_errors", "1"); ini_set("error_reporting", "2047"); phpinfo(); at the very beginning of my file and verifying the changes were accepted. I am a courtesy user on this server, and it would be difficult for me to request php.ini changes. Thanks!-- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.