Go Back   Web Server Hosting Forum by BODHost > Support > PHP Forum
 

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 10-12-08, 17:32
BOD Member
 
Join Date: Oct 2008
Posts: 30
Default PHP Error Logging

You can enable the personal php error logging for particular user and disable it for visitors.

Open the .htaccess file and add the following lines in .htaccess to enable the error logging. It will save the error logs in PHP_errors.log file under the /home/path/public_html/domain folder.

Quote:
php_flag log_errors on
php_value error_log /home/path/public_html/domain/PHP_errors.log
Similarly you can disable the error logging for visitors with the following lines in .htaccess

Quote:
php_flag display_startup_errors off
php_flag display_errors off
php_flag html_errors off
__________________
Regards
George
Reply With Quote
  #2 (permalink)  
Old 10-12-08, 20:12
BodShane's Avatar
Chief Operating Officer
 
Join Date: Dec 2006
Posts: 1,087
Send a message via AIM to BodShane Send a message via MSN to BodShane
Default

float log ( float $arg [, float $base ] ) : In this case, if the parameter is mentioned, log() returns logbase arg or log() gives the basic arg

arg basically calculates value of logarithm and base is the optional logarithm to utilize. Return Values are logarithm of arg to base, if given
__________________
Redundant Dedicated Server Hosting Solutions Only at BODHost
24x7 Toll-Free ph. : +1. 866-662-0909
Email : sales@bodhost.com | MSN : sales@bodhost.com
Reply With Quote
  #3 (permalink)  
Old 02-21-09, 14:56
BOD Member
 
Join Date: Jan 2009
Posts: 51
Default

Sounds interesting but I think you guys a flying a little over my head. I will have to do some reading and catch back up with you guys on this, but thanks for thinker!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump


All times are GMT -6. The time now is 22:40.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
Copyright © 1999-2012, BODHost Ltd. All rights reserved.