Re: [PHP] Exception vs exception

2008-02-21 Thread Prabath Kumarasinghe
--- Chris <[EMAIL PROTECTED]> wrote: > Prabath Kumarasinghe wrote: > > Hi All > > > > Recently I'm came across following code snippet > > regarding exceptions there I'm executing invalid > query > > and cat

[PHP] Exception vs exception

2008-02-21 Thread Prabath Kumarasinghe
Hi All Recently I'm came across following code snippet regarding exceptions there I'm executing invalid query and catch the exception as follows. First Approach --- try{ $result = mysql_query('SELECT * from unknowntable'); }catch(exception $e){ echo $e-

Re: [PHP] Exception handling in PHP

2008-02-07 Thread Prabath Kumarasinghe
Understood, Thanks Paul Cheers Prabath --- Paul Scott <[EMAIL PROTECTED]> wrote: > > On Wed, 2008-02-06 at 23:37 -0800, Prabath > Kumarasinghe wrote: > > Does that mean for every exception do we have to > write > > our custom exception and describe it from our ow

Re: [PHP] Exception handling in PHP

2008-02-06 Thread Prabath Kumarasinghe
Does that mean for every exception do we have to write our custom exception and describe it from our own message Cheers Prabath --- Paul Scott <[EMAIL PROTECTED]> wrote: > > On Wed, 2008-02-06 at 23:10 -0800, Prabath > Kumarasinghe wrote: > > Is this followin

Re: [PHP] Exception handling in PHP

2008-02-06 Thread Prabath Kumarasinghe
Hi Paul Is this following code work in PHP if mysql_connect fails. try{ mysql_connect('localhost','user',''); }catch(Exception $e){ echo $e->getMessage(); } Cheers Prabath --- Paul Scott <[EMAIL PROTECTED]> wrote: > > On Wed, 2008-02-06

[PHP] Exception handling in PHP

2008-02-06 Thread Prabath Kumarasinghe
Hi All I'm little bit confusing with PHP exception handling. Could you able to explain how to put try{} and catch(){} in a proper way in PHP. I had already read php exception manual but it didn't help me to get exact idea about exception handling in php. Cheers Prabath

[PHP] PHP array entries max limit

2008-01-16 Thread Prabath Kumarasinghe
Hi All I would like to know how many entries does PHP associative array can handle. Cheers Prabath