I have an idea for an application that I'm working on and I need to know if this will be possible.
I have a script that uses the eBay API to search for items. It will keep requesting info from eBay until an item matching the criteria is returned or it runs for 240 seconds, in which case it sends false back to the client and then restarts itself. The data that gets sent back would be done so through a websocket.
I need about 100 instances of this script running at once, concurrently.
I will launch them all with one PHP for loop, using cURL with curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 1);
.
I am unsure of how PHP gets executed on the server. Will it wait for one instance of the script to finish executing before launching the next one? Or will it launch all 100 instances of this script at once?