Catching errors

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
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Re: Catching errors

Post by Benjamin »

Sure, check out the various techniques and strategies: https://www.google.com/search?q=php+aut ... 2&bih=1187
Eric!
DevNet Resident
Posts: 1146
Joined: Sun Jun 14, 2009 3:13 pm

Re: Catching errors

Post by Eric! »

You could also check the file before trying to call include with is_file and throw your own exception.
User avatar
eazyGen
Forum Commoner
Posts: 46
Joined: Mon Aug 29, 2011 4:32 am
Location: Central London

Re: Catching errors

Post by eazyGen »

Thanks to both.

S
Post Reply