This one time, at band camp, "Richard Lynch" <[EMAIL PROTECTED]> wrote:


> So, of all the things that COULD go wrong, we just assume it's "No
> files Found"???
> 
> I don't think I'll ever learn to like SPL or try/catch...

Ok, I think my example was a little too simplistic...
You could of course create multiple catch blocks and test for various errors.
In this simple example the catch might loook like

catch(Exception $e){
   echo 'Uh oh: '. $e->getMessage();
}


This would tell you what the problem is perhaps.

Kind regards
Kevin


-- 
"Democracy is two wolves and a lamb voting on what to have for lunch. 
Liberty is a well-armed lamb contesting the vote."

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to