Re: display_errors stdout not working in a .htaccess file [message #170581 is a reply to message #170580] |
Tue, 09 November 2010 00:00 |
Jerry Stuckle
Messages: 2598 Registered: September 2010
Karma:
|
Senior Member |
|
|
On 11/8/2010 6:46 PM, Jim Wigginton wrote:
> On Nov 8, 5:08 pm, Jerry Stuckle<jstuck...@attglobal.net> wrote:
>> On 11/8/2010 4:35 PM, yawnmoth wrote:
>>
>>> I have a .htaccess file that contains only one line:
>>
>>> php_flag display_errors on
>>
>>> Only problem: Errors aren't being displayed as I'd expect. Any ideas
>>> as to why? Is there some setting in httpd.conf that can be used to
>>> prevent errors from displaying?
>>
>> What about error_reporting?
>
> I've tried setting error_reporting with the following:
>
> php_flag error_reporting 30719
> php_flag error_reporting E_ALL
>
> The former is the constant of E_ALL per<http://php.net/manual/en/
> errorfunc.constants.php>. Neither work. phpinfo() says that the
> local value of error_reporting is 0 whereas the master value is 30719
> so I'm thinking that's the problem. I just don't know where
> error_reporting is getting overwritten. The file I'm accessing is in
> the exact same directory as the .htaccess file.
You can't use E_ALL in your .htaccess file - it's only known to PHP, not
to Apache.
But your problem is that php_flag is just that - a flag, on or off.
What you need is php_value for error_reporting.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
|
|
|