Jump to content

undefined error


dlf1987

Recommended Posts

Hi i added a email error reporter to my php pages, and i didnt receive any errors until i took of the line "if ($errno == E_USER_ERROR) {", then i received like 15 error emails.

 

are error types other than "E_USER_ERROR" not important?

 

if ($errno == E_USER_ERROR) {
        mail("[email protected]", "Pixel Decal | Critical User Error", $err);
    }

 

in like 13 of the emails, they were just saying that things werent defined... for example:

 

undefined $example

 

i guess that just means that $example had no value... is that bad?

should everything have a default value?

does those small errors slow down the php processing?

does anything im saying make sense?  ::) lol

 

Thanks.

Link to comment
https://forums.phpfreaks.com/topic/53887-undefined-error/
Share on other sites

Potentially yes, it is less efficient because it is producing a notice error.

 

But in the long wrong it will slow you down like .001 seconds. Not a huge difference, now if you had like 100 of those errors or slow it would make a difference, but a few is nothing.

 

If I were you I would fix it, but really no big deal.

Link to comment
https://forums.phpfreaks.com/topic/53887-undefined-error/#findComment-267284
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.