How to run a PHP function concurrently against an array? -


i have php web app scrapes search engine given keyword.

currently app looping through array of keywords running scrape function 1 keyword @ time.

this ok @ moment because number of keywords small, won't scale well.

i think best way go select smaller set of keywords mysql db using limit, , run scrape function concurrently against entire array. once set has finished, i'll move on next set.

but i'm stuck how run function concurrently against array.

how handle this?

there isn't concurrency in php itself, if search result curl there multiple-request feature in curl extension, parallelize @ least fetching of results.


Comments

Popular posts from this blog

Add email recipient to all new Trac tickets -

400 Bad Request on Apache/PHP AddHandler wrapper -

php - Change action and image src url's with jQuery -