I have a PHP script that's working but it is way too slow. I need to add multi thread support. Ideally, I would like to multi-thread between 200 - 500 instances of the same script & have it all work together.
The script is working fine, so we can use that existing code & just allow multiple instances to run.
PHP5 & MySQL 5. The script reads a list of domain names from the mysql DB. Then each domain is analyzed for info such as nameservers, google pagerank & alexa rating. The analyzing takes place via public proxies.
The script is working fine, the proxy support is working.. but as I said, It's extremely slow! It takes around 40 seconds to analyze each domain.
If I could multi-thread the script to check say 200 domains every one to two minutes, & load the new data into MySQL, loop & analyze more domains that would be perfect.