Hi Is it possible to have PHP spawn a second process that will run independently of the script that started it?
This is what I'm trying to do : 1 - page.php > browser calls it, starts to execute 2 - if (condition) > fetch information from server.x via http pipe, log to database 3 - display page.php The problem is, step 2 is at the mercy of the speed of server.x and provides no value to the end user (i.e. it's just going into the db) so they shouldn't be made to wait for it. So what I'd like to do is have step 2 run and complete while step 3 is taking place - the only way I can think is to do something controllable, like create a 'to do' list for another script, then have a cron processing the to do list automatically. But there must be a better way... The data coming from server.x is dynamic, and so needs to be collected almost at the same time. Any ideas? Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php