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
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);
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
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.)
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
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()
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
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
8 matches
Mail list logo