friends! I have implemented a couple of parsers, which pass the captcha and pull the information, which takes a lot of time. Especially, if on the site of Rekapcha from Google. There is an acute problem in the speed of the script. Is it possible to somehow run each parser in its thread? or somehow asynchronously access them.

  • Does the trigger script have to communicate with threads? - sterx
  • @sterx it does not matter. The goal is to run the script faster at any cost - sbaikov
  • Well, then run each process in a loop like this passthru ('(php -f /pat/process.php params &) >> / dev / null 2> & 1'); just control their number through the database or something else - sterx
  • @sterx pitfalls there? - sbaikov
  • if you don't control the processes, theoretically they will hang the server - sterx

0