Sitephoria Knowledge Base

Frequently Asked Questions about Sitephoria Hosting
It is currently Mon Jul 22, 2019 7:02 am

All times are UTC - 6 hours [ DST ]




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Error messages and PHP
PostPosted: Mon Jun 03, 2002 6:43 pm 
Offline
Site Admin

Joined: Tue Mar 05, 2002 4:22 am
Posts: 107
Error messages and PHP
We have disabled error displaying in the php.ini file on our web servers. This means that no errors will be displayed when a faulty PHP script is run.

However, you may show the PHP errors by directory. To do this, you simply need to place an .htaccess file inside the directory with your PHP pages. To enable errors being displayed to the browser, add an .htaccess file containing the information below:

php_flag display_errors on
php_value error_reporting 7

The number after 'error_reporting' represents the error reporting integer. This parameter is an integer representing a bit field. The value of the error reporting level you want can be calculated as follows:

Error Reporting Level bit value
normal errors bit value 1
normal warnings bit value 2
parser errors bit value 4
non-critical style-related warnings bit value 8

The default value for this directive is 7 (normal errors, normal warnings and parser errors are shown).


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group