Possible Duplicate:
Asynchronous HTTP requests in PHP
I have a script that uses a foreach loop and takes an item id from a file and checks a head request if the status is 200. It is going to take a long time for this script to run, so is there any way I can do multiple requests at one time? I know with ajax if i do a for loop with $.ajax() it will start them all at once. how can I get this behavior with php or is there an alternative to allow for batch processing?