[Phpwm] Switch off errors to screen - apache

Alex Mace alex at hollytree.co.uk
Tue Nov 11 11:00:48 UTC 2008


You can turn it on or off with this code

// On
ini_set( 'display_errors', 1 );
// Off
ini_set( 'display_errors', 0 );

You might find it better log errors through the apache error log  
though. That should have the page that they appear on...

On 11 Nov 2008, at 10:55, gary denham wrote:

> Thanks, I tracked down the php settings in the php.ini file and  
> switched
> them off, most our work is internal where its useful for us to see the
> errors, is there a way of switching error reporting back on at page  
> level?
>
>
> Gary
>
>
> Dave Holmes wrote:
>> Are you talking about PHP errors or HTTP errors and the apache error
>> pages?
>>
>> If it's PHP look for these settings in your ini file
>>
>> error_reporting
>> display_errors
>>
>> You will need to restart apache
>>
>>
>> gary denham wrote:
>>> Hi
>>>
>>> We need to switch off error reporting to screen on our apache web  
>>> server
>>> can anyone know how to do this.
>>>
>>> Regards
>>>
>>> Gary
>>>
>>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Phpwm mailing list
>> Phpwm at mailman.lug.org.uk
>> https://mailman.lug.org.uk/mailman/listinfo/phpwm
>>
>
> -- 
>
> DISCLAIMER:
>
> This document originates from within Dunns Imaging Group Limited.
> This message, together with any associated files, is intended only for
> the use of the individual or entity to which it is addressed and may
> contain information that is confidential, subject to copyright or
> constitutes a trade secret. If you are not the intended recipient of
> this communication you are hereby notified that any dissemination,
> copying or distribution of this message, or of any files associated  
> with
> this message, is strictly prohibited.
> If you have received this message in error, please notify us at once.
>
> Dunns Imaging Group Ltd.
> Registered Office: Chester Road Cradley Heath West Midlands B64 6AA.
> Tel: 01384 564770
> Registered in England 598527.
>
>
> _______________________________________________
> Phpwm mailing list
> Phpwm at mailman.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/phpwm




More information about the Phpwm mailing list