Currently I'm using multi_curl to execute php files simultaneously on my own server. It seems that it is not a very efficient way as the server gets overloaded when 200+ scripts need to be executed at the same time. I need to send variables to each php script which I do currently by putting all the required variables in the post request.
I know that another option would be gearman, but I'd have to install that, and I prefer not to install too many applications although I have no idea wheter it is a heavy program or not. I also don't know if it would more efficient for the server.
Would there also be an option to use the linux shell command within php?
I have a standard configured linux server with php and mysql.
So my question is:
What would be the most efficient way to execute many php scripts simultaneously that also allows me to send a set of variables to each script?