> I need some type of script forking and I'm wondering if there is a good > way in PHP. > > I've considered work arounds such as cron batching and AJAX, but I keep > thinking there has to be a way to do it in PHP. I've looked at starting > the report script with a shell command, but it seems PHP waits for a > return value. Does anyone have any insight on forking?
usually in these types of situations i like to insert the "forked" process information into a database. then i will have a cron script that will read this information and execute the desired feature. this seems to be the best approach for me and I can then update the database with status information and inform the user as they are continuing to use the site. so i basically do this: 1. database table for the cron process information 2. cron script that reads this information and executes scripts for it 3. update the status information in the database 4. notify user that process is complete -- ray _______________________________________________ UPHPU mailing list [email protected] http://uphpu.org/mailman/listinfo/uphpu IRC: #uphpu on irc.freenode.net
