Re: [PHP] PHP error log
On Thu, April 20, 2006 7:42 am, Weber Sites LTD wrote: > I'm using PHP 4.4.0 (cli) and all of the errors / warnings are written > to > file. > I can see all of the direct errors but when I have an error inside an > include > file the script fails and the error is not shown in the log. I have to > "guess" > Where the error is. > > Any idea what I'm missing. Perhaps the include file[s] in question are using this function: http://php.net/error_reporting And, if so, you should seriously consider NOT using those include files. Program with code SO BAD that they need to call error_reporting to hide their errors instead of fixing the errors are probably programs you do not want to use in the first place. -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] PHP error log
Actually I'm not looking for help with the code. The problem is more of a principle problem. Because I don't want users to see errors and warnings When there is a problem all of the errors go to a log file Instead of the standard output. As long as the error (any error) occurs in the file I'm Working on, I can see the error in the error log. If the Error is in a file I include I don't see the error. This is not something special for my system. I think It's a definition in the php.ini to suppress errors to Standard output and log them to a file instead. I have : error_reporting = E_ALL|E_STRICT display_errors = Off display_startup_errors = Off log_errors = On track_errors = Off error_log = /usr/local//logs/php_errors (the Is not the real path) warn_plus_overloading = Off Thanks -Original Message- From: Wolf [mailto:[EMAIL PROTECTED] Sent: Thursday, April 20, 2006 5:15 PM To: Weber Sites LTD Cc: php-general@lists.php.net Subject: Re: [PHP] PHP error log Run the include file separately and see if it produces an error. Also make sure that if you have "short open tags=OFF" that your include file uses normal tags. Code normally helps. Wolf Weber Sites LTD wrote: > Hi > > I'm using PHP 4.4.0 (cli) and all of the errors / warnings are written > to file. > I can see all of the direct errors but when I have an error inside an > include file the script fails and the error is not shown in the log. I > have to "guess" > Where the error is. > > Any idea what I'm missing. > > Thanks > Berber > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP error log
Run the include file separately and see if it produces an error. Also make sure that if you have "short open tags=OFF" that your include file uses normal tags. Code normally helps. Wolf Weber Sites LTD wrote: > Hi > > I'm using PHP 4.4.0 (cli) and all of the errors / warnings are written to > file. > I can see all of the direct errors but when I have an error inside an > include > file the script fails and the error is not shown in the log. I have to > "guess" > Where the error is. > > Any idea what I'm missing. > > Thanks > Berber > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP error log
Please, explain how are you logging the errors. Weber Sites LTD wrote: Hi I'm using PHP 4.4.0 (cli) and all of the errors / warnings are written to file. I can see all of the direct errors but when I have an error inside an include file the script fails and the error is not shown in the log. I have to "guess" Where the error is. Any idea what I'm missing. Thanks Berber -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] PHP error log
Are you using the constants predefined? __FILE__ __LINE__ Or also try using backtrace, http://mx.php.net/debug_backtrace Regards! Edwin. -Mensaje original- De: Weber Sites LTD [mailto:[EMAIL PROTECTED] Enviado el: Jueves, 20 de Abril de 2006 07:43 a.m. Para: php-general@lists.php.net CC: [EMAIL PROTECTED] Asunto: [PHP] PHP error log Hi I'm using PHP 4.4.0 (cli) and all of the errors / warnings are written to file. I can see all of the direct errors but when I have an error inside an include file the script fails and the error is not shown in the log. I have to "guess" Where the error is. Any idea what I'm missing. Thanks Berber -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php error log : productinfo finished message
* Thus wrote Merlin ([EMAIL PROTECTED]): > > most likely a php script is using syslog() to report that > > 'ProductInfo finished'. > > what is syslog and which ProductInfo? Can you be more specific? syslog() is a phpfunction that allows php script to write to the phplog file. http://php.net/syslog I'm not entirely sure what the ProductInfo is. I'm assuming it has to do with one of the scripts running on your server. Perhaps a 'find /webdir/ -name "*.php" -exec grep "ProductInfo" {} \;' might yield the problem. Curt -- "I used to think I was indecisive, but now I'm not so sure." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php error log : productinfo finished message
> most likely a php script is using syslog() to report that > 'ProductInfo finished'. what is syslog and which ProductInfo? Can you be more specific? Thanx, merlin --
Re: [PHP] php error log : productinfo finished message
* Thus wrote Merlin ([EMAIL PROTECTED]): > Hi there, > > I have some wired messages inside my php errorlog file, telling me: > > [30-Jul-2003 20:02:53] ProductInfo finished > > There is an entry every few seconds! Does anybody know what this means? most likely a php script is using syslog() to report that 'ProductInfo finished'. Curt -- "I used to think I was indecisive, but now I'm not so sure." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php