Re: Am I supposed to be using SPL?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This one time, at band camp, "Richard Lynch" <ceo@xxxxxxxxx> 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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux