Re: Not Display Errors

From: Date: Fri, 08 Dec 2000 09:58:49 +0000
Subject: Re: Not Display Errors
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-29310@lists.php.net to get a copy of this message
This all looked like a good idea, so I did it, and it seems to meet that error_log = ... is only used when you specifically use error_log() to log something. As you have it below (I think) it will log to the apache log for that domain. MySQL errors, however, are not being logged to that file, and are being shown on the page. I have to say I wish they weren't, I would like them to behave like the PHP errors, which are being logged as you would think they would. Any suggestions, anyone? Thanks, Brian > first off, make a page containing <? phpinfo(); ?> and look at it. > make sure that the config file path it shows is where your php.ini > actually is. > > Samantha Savvakis wrote: > > > > Hi, > > > > I'm using: PHP4.0.2 > > Apache 1.3.11 with SSL > > SCO OpenServer 5.0.5 > > > > I wanted to turn off displaying error messages on the web page and put it > > into a log file. > > > > I set the following in the php.ini file: > > > > display_errors = Off > > display_startup_errors = Off > > log_errors = On > > track_errors = On > > error_log = /usr/local/apache/logs/phperror_log > > > > I stopped and started the Apache web server. > > > > My php.ini file exists in the /usr/local/lib directory. I have no other > > php.ini files, except for those in the php-4.0.2/pear/tests/ directory. > > > > Still, the errors say from a mysql query are getting printed on the web > > page. And the error log isn't showing. I even created that file, just incase > > it was complaining about not being able to write to the file. > > > > Is there something I'm missing or haven't done? > > > > Thanks, > > Sam > > > > -------------------------------------- > > Samantha Savvakis (B.E. Comp-Sys HONS) > > Software Engineer > > Computer Fiscal Services > > Unit 1, 13-15 Steel Street > > CAPALABA, BRISBANE Q4157 > > AUSTRALIA > > Tel: 07 3245 7522 > > Fax: 07 3245 7299 > > www.cfs.net.au > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > > For additional commands, e-mail: php-general-help@lists.php.net > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#29310) next »