Re: [PHP] Re: Register_Shutdown_Function ??

2002-05-20 Thread Rasmus Lerdorf
Windows? Blah. This stuff may very well not work there. No idea. -Rasmus On Sat, 18 May 2002, Jason Caldwell wrote: It doesn't matter. I'm setting the output *not* to the browser, but to the command shell, where I am running the script from. If you look at the errors, you'll see 2 of

Re: [PHP] Re: Register_Shutdown_Function ??

2002-05-20 Thread Rasmus Lerdorf
What makes you think you can echo something after your script has timed out? Change that print to write something to a file in /tmp and you will see that it works just fine. -Rasmus On Sat, 18 May 2002, Jason Caldwell wrote: Here's my code: ? set_time_limit(1);

[PHP] Re: Register_Shutdown_Function ??

2002-05-19 Thread Jason Caldwell
I just upgraded from 4.1.1 to 4.2.1 -- didn't fix the problem. I'd be curious to know if other Windows users are having the same problem. Thanks. Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Register_Shutdown_Function ??

2002-05-18 Thread Jason Caldwell
Here's my code: ? set_time_limit(1); function clean_up() { if(connection_status() TIMEOUT) print(Script timed out.\n); } register_shutdown_function(clean_up); while(1); ? Here's the message I get: (I should get Script timed out.)

[PHP] Re: Register_Shutdown_Function ??

2002-05-18 Thread CC Zona
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Jason Caldwell) wrote: Here's my code: ? set_time_limit(1); function clean_up() { if(connection_status() TIMEOUT) print(Script timed out.\n); } register_shutdown_function(clean_up); while(1); ? Here's the

[PHP] Re: Register_Shutdown_Function ??

2002-05-18 Thread Jason Caldwell
It doesn't matter. I'm setting the output *not* to the browser, but to the command shell, where I am running the script from. If you look at the errors, you'll see 2 of them, one points to line 7, where the IF() command is -- the script terminates there... I've put error_log() and exec()

[PHP] Re: register_shutdown_function

2002-04-15 Thread Michael Virnstein
afaik there is no way to call a class method with register_shutdown_function. simply use a function which calls your constructor function _shutdown() { xmysql::~xmysql(); } register_shutodown_function(_shutdown); Hayden Kirk [EMAIL PROTECTED] schrieb im Newsbeitrag

[PHP] Re: register_shutdown_function and a MySQL query keeping connection with browser.

2001-08-09 Thread Richard Lynch
Even if you could get it to work, you'd be in trouble, as the PHP interpreter will clean up after you and trash your MySQL connection when it finishes, and anything that didn't get done before that would not work. You'll probably need to code this with two separate PHP files, one which calls the