@ (at) signs in php and still getting errors. (php newbie)

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

User avatar
Eran
DevNet Master
Posts: 3549
Joined: Fri Jan 18, 2008 12:36 am
Location: Israel, ME

Re: @ (at) signs in php and still getting errors. (php newbie)

Post by Eran »

You can not trap fatal errors, since by definition they kill the script (hence fatal). Any error handling set in code (including the @ operator) are a part of the script and will be killed as well. In short, try to avoid fatal errors.
User avatar
Syntac
Forum Contributor
Posts: 327
Joined: Sun Sep 14, 2008 7:59 pm

Re: @ (at) signs in php and still getting errors. (php newbie)

Post by Syntac »

To clarify what pytrin just said: The @ symbol will stop a fatal error from printing the message, but it won't stop it from being fatal.
Post Reply