"Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Use register_shutdown_function()
I made this test:
<?php
function shutingdown()
{
$fh = fopen('d:/tmp/test.out', 'w');
if ($fh)
{
for($i=0; $i<10000000; $i++)
fwrite($fh, "$i\n");
fclose($fh);
}
}
register_shutdown_function('shutingdown');
echo "Running...";
flush();
exit();
?>
But the browser gets this:
Running...
Fatal error: Maximum execution time of 30 seconds exceeded in
d:\tests\shutdown.php on line 8
My env is: Windows XP-Pro. WebServer: Apache 1.3.24. PHP 4.3.3 (apache
module)
Thanks and regards,
Manu.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php