You can use PHP-GTK in the background. Just call it with cron.
Alternatively, you can set PHP to keep executing on the user exit. What
was that function called? on_*_shutdown()?

Could be dangerous though, what if it goes to loop-in your server? 30
mins is quite a few for a script to run. So, check also
max_execution_time directiv in your PHP.INI.

Or, the best is - loop up a way to reduce (or split) the times.


Sincerely,

Maxim Maletsky
Founder, Chief Developer

www.PHPBeginner.com   // where PHP Begins




-----Original Message-----
From: Richard Perez [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, April 24, 2002 5:33 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Background Processing


Hi people!!

I'm trying to find a way to handle this but I don't come up with
anything.

I need to execute a query to a DB using PHP. The thing is that the query
takes 0.5 hours to execute and I can't wait that time with the browser
opened in that page.

What I want to do is to execute a PHP code block in some sort of
background way so I can execute the query and send the results via
email.


Any ideas to do this??


Thanks a lot.

Richard.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to