Re: [PHP] try - catch is not so clear to me...

2009-04-14 Thread Bastien Koert
[snip] > > > > function send_confirmation_email($to, $subject, $body) > { > $headers ="MIME-Versin: 1.0\n" . > "Content-type: text/plain; charset=ISO-8859-1; > format=flowed\n" . > "Content-Transfer-Encoding: 8bit\n" . > "Reply-To:

Re: [PHP] try - catch is not so clear to me...

2009-04-14 Thread Lamp Lists
From: Bastien Koert To: Lamp Lists Cc: Marc Steinert ; php-general@lists.php.net Sent: Tuesday, April 14, 2009 8:11:04 AM Subject: Re: [PHP] try - catch is not so clear to me... On Mon, Apr 13, 2009 at 11:34 PM, Lamp Lists wrote

Re: [PHP] try - catch is not so clear to me...

2009-04-14 Thread Bastien Koert
On Mon, Apr 13, 2009 at 11:34 PM, Lamp Lists wrote: > > > > > From: Marc Steinert > To: Lamp Lists > Cc: php-general@lists.php.net > Sent: Monday, April 13, 2009 11:27:08 AM > Subject: Re: [PHP] try - catch is not so clear to me... &g

Re: [PHP] try - catch is not so clear to me...

2009-04-13 Thread Lamp Lists
From: Marc Steinert To: Lamp Lists Cc: php-general@lists.php.net Sent: Monday, April 13, 2009 11:27:08 AM Subject: Re: [PHP] try - catch is not so clear to me... Basically try-catch gives you the ability to handle errors outside a class or method scope, by

RE: [PHP] try - catch is not so clear to me...

2009-04-13 Thread Bob McConnell
From: Marc Steinert > Basically try-catch gives you the ability to handle errors > outside a class or method scope, by the > calling instance. > This comes in handy, if you are programming in an object > orientated way and thus enables you to > seperate error handling from the rest of your funct

Re: [PHP] try - catch is not so clear to me...

2009-04-13 Thread Marc Steinert
Basically try-catch gives you the ability to handle errors outside a class or method scope, by the calling instance. This comes in handy, if you are programming in an object orientated way and thus enables you to seperate error handling from the rest of your functionality. Means, your methods do

Re: [PHP] try - catch is not so clear to me...

2009-04-13 Thread Lamp Lists
> > From: Lamp Lists > To: php-general@lists.php.net > Sent: Monday, April 13, 2009 9:29:16 AM > Subject: [PHP] try - catch is not so clear to me... > > hi to all! > > actually, the statement in the Subject line is not 100% correct. I understand > the purpose

Re: [PHP] try - catch is not so clear to me...

2009-04-13 Thread Lamp Lists
From: Kyle Smith To: Lamp Lists Cc: php-general@lists.php.net Sent: Monday, April 13, 2009 9:52:36 AM Subject: Re: [PHP] try - catch is not so clear to me... Lamp Lists wrote: hi to all! actually, the statement in the Subject line is not 100% correct. I

Re: [PHP] try - catch is not so clear to me...

2009-04-13 Thread Kyle Smith
Lamp Lists wrote: hi to all! actually, the statement in the Subject line is not 100% correct. I understand the purpose and how it works (at least I think I understand :-)) but to me it's so complicated way? let's take a look in example from php.net(http://us3.php.net/try) getMessage(), "\n"