[PHP] Re: Error handling

2008-03-11 Thread Shawn McKenzie
It Maq wrote: Hi, I need help with a simple script that i made for handling errors. The problem is that the script displays the same message several times while i want it displayed just one time. He is the code: ?php function error_handler($errno, $errstr, $filename, $lineno,

[PHP] Re: Error handling

2007-03-01 Thread Roberto Mansfield
Chris Ditty wrote: I am trying to add some error handling to my code. Instead of reinventing the wheel, I searched and found the code below. For the most part, it seems to work. When I have an error, it doesn't get shown. However, I don't get any output. I tracked it down to the $errno.

[PHP] Re: Error Handling Library?

2006-09-01 Thread Tony Marston
Take a look at http://www.tonymarston.net/php-mysql/errorhandler.html -- Tony Marston http://www.tonymarston.net http://www.radicore.org Jay Paulson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I've been doing some research and was wondering if anyone out there has written a

[PHP] Re: Error Handling

2005-09-09 Thread Matthew Weier O'Phinney
* Chuck Brockman [EMAIL PROTECTED]: What is a good way to capture errors that occur. I've tried the following code in development, but it still spits out an error (Parse error: syntax error, unexpected '}', expecting ',' or ';' in X:\\\.php on line 7) ? // error handling test

[PHP] Re: error handling

2003-06-19 Thread Mignon Hunter
I looked in the manual (twice now). I want to keep logging to the log file but print to browser on this one script. I have in my script: error_reporting (E_ALL); error_reporting (E_ERROR | E_WARNING | E_PARSE); but they're still only being logged to file. I dont have access to php.ini. Yes,

Re: [PHP] Re: error handling

2003-06-19 Thread CPT John W. Holmes
I looked in the manual (twice now). I want to keep logging to the log file but print to browser on this one script. I have in my script: error_reporting (E_ALL); error_reporting (E_ERROR | E_WARNING | E_PARSE); but they're still only being logged to file. I dont have access to php.ini.

[PHP] Re: error handling

2002-09-13 Thread Erwin
Mattia wrote: I'm writing a web app with php, and would like to do the following: when an error occures (a php/apache error or an application error) the error is logged to a log file. The user is displayed a page that says 500 internal server error, and nothig more. I have access to .htacces

[PHP] Re: Error Handling Class - Any Recommendations?

2002-04-18 Thread Manuel Lemos
Hello, Julio Nobrega Trabalhando wrote: Anyone recommend a good one? I am in need of the following features: 1) Catch any type of errors, 2) Actions like: Show on the screen, log on a file or database, or email, 3) Different actions for each error level/warning type, etc.. I have

[PHP] Re: Error Handling Class - Any Recommendations?

2002-04-18 Thread Julio Nobrega Trabalhando
Hi Manuel! I am looking for anything that's already done, constructed, tested. PHP does have error handling, and I could code my own class to glue all functions/necessities together, but that would take too much time. Just something at least to start from is a good thing... Saves a lot of

[PHP] Re: Error Handling Class - Any Recommendations?

2002-04-18 Thread Manuel Lemos
Hello, Julio Nobrega Trabalhando wrote: Hi Manuel! I am looking for anything that's already done, constructed, tested. PHP does have error handling, and I could code my own class to glue all functions/necessities together, but that would take too much time. Just something at least

[PHP] Re: Error Handling Class - Any Recommendations?

2002-04-18 Thread Julio Nobrega Trabalhando
I am looking for something like this: if (error($anything)) { $method = Array('show_on_page', 'email', 'file'); $my_error_message = 'We are in trouble!'; $severity = 'Light'; $error_class-LogError($method, $my_own_error_message, $natural_error_message, $severity,

[PHP] Re: Error Handling Class - Any Recommendations?

2002-04-18 Thread Michael Virnstein
Use PEAR_Error. It's really powerful and has yll you need. there's no logging method in PEAR_Error afaik, but you can easily do this with PEAR's Log class, same for mailing. use PEAR's mail class to send mails. I like PEAR very much. It has lots of good things to offer and is easily extendable

[PHP] Re: Error Handling Class - Any Recommendations?

2002-04-18 Thread Manuel Lemos
Hello, Julio Nobrega Trabalhando wrote: I am looking for something like this: if (error($anything)) { $method = Array('show_on_page', 'email', 'file'); $my_error_message = 'We are in trouble!'; $severity = 'Light'; $error_class-LogError($method, $my_own_error_message,

[PHP] Re: Error Handling Class - Any Recommendations?

2002-04-18 Thread Julio Nobrega Trabalhando
Thanks Manuel, that's indeed a large portion of my needs. But still, from the time of my first post, among the new replies, I have found dozens of features that I think it would be interesting, and currently there's nothing suited to my needs. So I will base my work largely on use error_log(),

[PHP] Re: Error handling and the usage of @

2001-09-07 Thread Hugh Bothwell
Seb Frost [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Could someone give me an example of the sort of error handling you put in your php scripts? Cheers. Should I be preceding every command with @? Anything where this would be harmful? Just looking for

RE: [PHP] Re: Error handling and the usage of @

2001-09-07 Thread Seb Frost
] Subject: [PHP] Re: Error handling and the usage of @ Seb Frost [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Could someone give me an example of the sort of error handling you put in your php scripts? Cheers. Should I be preceding every command with @?

Re: [PHP] Re: Error handling and the usage of @

2001-09-07 Thread Hugh Bothwell
Seb Frost [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... So I should chuck it on all mysql functions? Done. Don't ya just love search and replacing a whole directory of scripts :-) Still works fine too - bonus! er... I should have noted - if you are going