Error handling in application

Discussions of secure PHP coding. Security in software is important, so don't be afraid to ask. And when answering: be anal. Nitpick. No security vulnerability is too small.

Moderator: General Moderators

Post Reply
Forum Commoner
Posts: 49
Joined: Fri Aug 22, 2008 7:28 pm
Location: Rancho Cucamonga, CA

Error handling in application

Post by cali_dotcom »

hi guys, i am currently building a nice website and i was just wondering about the best way to handle errors, database and webservices errors.
i was thinking on implementing a mixture of file and db logging. so basically i would log to db all the time and then i would log to filewhen there is a db error. i am also thinking of the best way to handle this.
the site is built in Zend Framework, so i am considering using the zend error handling and logging functionality, but i worried it might be too much overhead.

do you guys have any suggestions as to the best way to go about this? zend, pear or any other?
User avatar
Site Administrator
Posts: 13595
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Error handling in application

Post by Christopher »

You might want to think about the standard PHP error logging. It is obviously very efficient. Take a look at trigger_error().
Post Reply