search

Home  >  Q&A  >  body text

Seeking solutions for handling exceptions thrown by PHP multi-threads

Since I want to do a website monitoring, I need to use multi-threading, and I want to access the timeout during the execution process. I use try() to throw an exception and let the program continue to execute, but it does not succeed. But using a single thread is enough. I searched online and found the reason: because the exception thrown by the main thread cannot be executed in other threads. Now you have found the problem, but don’t know how to solve it? Please give me some advice.

装睡不醒装睡不醒1558 days ago980

reply all(0)I'll reply

No reply
  • Cancelreply