[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:
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
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
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
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
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
>
> 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.
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
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"
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";
}
// Continue exe
2007/12/31, Richard Lynch <[EMAIL PROTECTED]>:
>
> On Sun, December 23, 2007 3:50 pm, Martin Alterisio wrote:
> > It's not supposed to be practical, it's just a way to handle errors.
> > You
> > shouldn't rely on try/catch for algorithm implementation.
> >
> > You create exceptions for errors and u
On Sun, December 23, 2007 3:50 pm, Martin Alterisio wrote:
> It's not supposed to be practical, it's just a way to handle errors.
> You
> shouldn't rely on try/catch for algorithm implementation.
>
> You create exceptions for errors and unexpected behavior. Then in some
> other
> part of the system
total message : {$err}";
}
> -Original Message-
> From: Al [mailto:[EMAIL PROTECTED]
> Sent: Monday, December 24, 2007 5:59 AM
> To: php-general@lists.php.net
> Subject: Re: [PHP] Try{} Catch()
>
> I understand it's intended use and how to use it, hav
I understand it's intended use and how to use it, have just not found a good use
for it yet.
Martin Alterisio wrote:
It's not supposed to be practical, it's just a way to handle errors. You
shouldn't rely on try/catch for algorithm implementation.
You create exceptions for errors and unexpec
It's not supposed to be practical, it's just a way to handle errors. You
shouldn't rely on try/catch for algorithm implementation.
You create exceptions for errors and unexpected behavior. Then in some other
part of the system you use try/catch to prevent the code from terminating
abruptly. You ca
Try() and Catch() seems neat; but, I've not found it to be very practical.
Anyone using it? How?
Al...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello James,
in future we will implement the script with cron, i've already talk to
the support server guys... and i think this would be the best pratice...
But for now i was wondering if there's a workaround... because in the
moment my boss tell me to not change anything that could delay the
s
On 9/17/07, Rodolfo De Nadai <[EMAIL PROTECTED]> wrote:
> Hi all...
>
> I'm facing a serious problem with my application. I have a script write
> in PHP that starts in Internet Explorer, this script keep on running
> until a varible value change on my MySQL database.
> The problem is that when i re
PROTECTED]
Sent: Monday, September 17, 2007 1:00 PM
To: Daevid Vincent
Cc: php-general@lists.php.net
Subject: Re: [PHP] Try to find a solution, when restart
Apache with PHP Script
Hi Daevid,
This app keep alive forever as well?
When you restart apache what happend to your app?
JS / AJAX.
> -Original Message-
> From: Rodolfo De Nadai [mailto:[EMAIL PROTECTED]
> Sent: Monday, September 17, 2007 1:00 PM
> To: Daevid Vincent
> Cc: php-general@lists.php.net
> Subject: Re: [PHP] Try to find a solution, when restart
> Apache with PHP Script
>
> Hi Dae
Hi Daevid,
This app keep alive forever as well?
When you restart apache what happend to your app?
Daevid Vincent escreveu:
-Original Message-
From: Rodolfo De Nadai [mailto:[EMAIL PROTECTED]
Sent: Monday, September 17, 2007 5:25 AM
To: php-general@lists.php.net
Subject: [PHP
> -Original Message-
> From: Rodolfo De Nadai [mailto:[EMAIL PROTECTED]
> Sent: Monday, September 17, 2007 5:25 AM
> To: php-general@lists.php.net
> Subject: [PHP] Try to find a solution, when restart Apache
> with PHP Script
>
> Hi all...
>
> I'
Rodolfo De Nadai wrote:
Jim, i've already look for pcntl... but the support server guys, tell me
that they can't install php modules that are not pre-compiled... so,
pcntl is not an alternative...
Bummer, get new support server guys... no, but really
I think you are right... i have to
Right on the moment this process is not a option... because the project
should end in 4 weeks... perhaps after a while i could try use this
ideia of yours...
But right now i have to find a diferent solution...
But thanks Jim... that open new horizons...
Jim Lucas escreveu:
Rodolfo De Nadai
Rodolfo De Nadai wrote:
No... it not should only run when i'm connected to it throught a web
server...
it means that when i go to specific IE page and press a button named
'Enable' the daemon should be called and start to run indefinitly, and
i'm able to close IE session and the daemon keep wor
No... it not should only run when i'm connected to it throught a web
server...
it means that when i go to specific IE page and press a button named
'Enable' the daemon should be called and start to run indefinitly, and
i'm able to close IE session and the daemon keep working as well...
That's
Rodolfo De Nadai wrote:
Edward , my best guess is that not IE is holding the connection but the
apache user... because the process is related to the apache user... and
there's more i can close IE, bacause i use the directive 2> log.log & on
the call of system.
Example:
system("php myscript.php
Jim, i've already look for pcntl... but the support server guys, tell me
that they can't install php modules that are not pre-compiled... so,
pcntl is not an alternative...
I think you are right... i have to make this script a daemon... but how
can i do that with php??... the problem is that t
Edward , my best guess is that not IE is holding the connection but the
apache user... because the process is related to the apache user... and
there's more i can close IE, bacause i use the directive 2> log.log & on
the call of system.
Example:
system("php myscript.php 2> log.log &");
This why
> I'm facing a serious problem with my application. I have a script write
> in PHP that starts in Internet Explorer, this script keep on running
> until a varible value change on my MySQL database.
> The problem is that when i restart Apache, the process child initalized
> isn't kill... then the ap
Hi all...
I'm facing a serious problem with my application. I have a script write
in PHP that starts in Internet Explorer, this script keep on running
until a varible value change on my MySQL database.
The problem is that when i restart Apache, the process child initalized
isn't kill... then the
Hi all...
I'm facing a serious problem with my application. I have a script write
in PHP that starts in Internet Explorer, this script keep on running
until a varible value change on my MySQL database.
The problem is that when i restart Apache, the process child initalized
isn't kill... then t
[EMAIL PROTECTED] wrote:
What are some of the other "killer features" of PHP5 that I may be sleeping on
here.
You have got to get your hands on XMLWriter. I don't write any XHTML
inside php any more. I've wrapped the XMLWriter object inside my own
object and now I can create 100% proper
with best wishes
Zheng Sun
_
Add photos to your messages with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
* Thus wrote -- ([EMAIL PROTECTED]):
> Hello Jay,
>
>Yes, I´m running PHP5.
>And in my code you can see that the exception is
> throwed in an a call to a methode from an aggregated
> object in a suclassed one ($this->curl->GET()). The
> GET() methode throws the excpetion if curl_exec
> ret
Hello Jay,
Yes, I´m running PHP5.
And in my code you can see that the exception is
throwed in an a call to a methode from an aggregated
object in a suclassed one ($this->curl->GET()). The
GET() methode throws the excpetion if curl_exec
returns an error.
But one would expect that the exce
[snip]
Try/Catch
Well, may question is about the Scope of Throwed
Execeptions.
[/snip]
What version of PHP are you running? Only V5 has this kind of exception
handling. See http://www.php.net/zend-engine-2.php
HTH!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http:/
Well, may question is about the Scope of Throwed
Execeptions. Look my example:
I have something like this:
//...cut...
try {
$res =
$this->curl->GET($this->url[0]);
} catch (Exception $e) {
one thing i really love in perl is the block eval {} structure, which is
similar to try/catch/throw in java and other languages.
i'm missing it a lot in php. is there a way to simulate it?
for instance, say i have a bunch of database commands. in perl, i would do
something like (pseudocode):
Hi,
MS Word encodes it's contents, so you'll need to use
the COM interface to access MS Word Files.
A tutorial is available @ http://www.xeru.com on COM
with PHP4.
--- Jack <[EMAIL PROTECTED]> wrote:
> Dear all
> I'm trying to get PHP to read the content which
> created by MS Word.But when
> ph
Dear all
I'm trying to get PHP to read the content which created by MS Word.But when
php runs, and it just return Nothing (Blank ) to the browser!!
Actually , i was thinking to make a HTML Page which can let user to type in
the content, then the content will copy to a file and finally a php will
p
he extensive error handling that Java does. It's a
> bit more like C.
>
> Jason
>
> - Original Message -
> From: "Jeff" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, February 26, 2001 6:30 PM
> Subject: [PHP] try catch in
No, PHP doesn't have the extensive error handling that Java does. It's a
bit more like C.
Jason
- Original Message -
From: "Jeff" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 26, 2001 6:30 PM
Subject: [PHP] try catch in php?
&g
Is there any equivalent java try catch syntax in php ?
Thanks,
Jeff
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
Alain Fontaine wrote:
>
> Hi,
>
> Are there any plans on implementing something like Exception handling into
> future versions of PHP? That would be great.
>
I do remember Zeev saying it is considered for future implementation. I
don't
remember if it was on this list or php-dev one, though.
Hi,
Are there any plans on implementing something like Exception handling into
future versions of PHP? That would be great.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list admini
;
> - Scott
>
>
> > -Original Message-
> > From: andreas (@work) [mailto:[EMAIL PROTECTED]]
> > Sent: January 13, 2001 9:14 AM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP] TRY AGAIN mysql php4.04 and safe_mode
> >
> >
> >
hi list,
sorry, but we cant manage
a Load Data Infile
cause we always get:
Can't get stat of '/tmp/phpNNAQSM' (Errcode: 2)
OUR Code is working fine in different project where safe_mode = OFF
=
heres the line where we try to move the file to a webfolder i
hi list,
sorry, but we cant manage
a Load Data Infile
cause we always get:
Can't get stat of '/tmp/phpNNAQSM' (Errcode: 2)
OUR Code is working fine in different project where safe_mode = OFF
=
heres the line where we try to move the file to a webfolder in our d
49 matches
Mail list logo