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:
>
> function error_handler($errno, $errstr, $filename, $lineno, &$cont
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
> $err
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
* 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 t
> 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
>
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,
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
> .hta
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(), w
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_
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 for
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, $file_where_ha
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 l
I have jumped into this thread late, perhaps this has
alread been mentioned.
Why don't you use PEAR Error
_justin
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
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
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..
>
>
"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
ECTED]
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? Chee
"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
18 matches
Mail list logo