> I do have a database and have considered using it in conjunction with
> cron.  However, I don't like the disconnected nature of the solution.
> There could be up to a minute delay before cron picks up the request.
>
> There's got to be another method similar to using flush(), that causes
> the lengthy processing to immediately start as well as redirecting the
> visitor to another page.

Hi Ron

Well if it is really critical that the batch job runs within seconds of
being requested by the web process then you have several alternatives apart
from using database/cron ... here's a few examples with various levels of
simplicity of implementation...

. Kick off a cli script to run the batch job using exec() or similar..
. Implement a web service using XML-RPC or SOAP - i.e. call an API on the
XML-RPC/SOAP server and let it do its stuff...
. Have a custom background script listening on a socket - send a request to
that socket from your web page...
. IPC through shared memory...
. probably loads more...

Rich

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

Reply via email to