Open chinmay235 opened 7 years ago
I have followed your document. Here is getting error message. Could you pleae check.
PHP Fatal Error – yii\base\ErrorException Class 'php\multithreading\Exception' not found
Code:
$start = microtime(true); require(__DIR__ . '/../../vendor/grandmasterx/yii2-multithreading/Threads.php'); $threads = new Threads; $threads->newThread(dirname(__FILE__).'/file.php', array()); while (false !== ($result = $threads->iteration())) { if (!empty($result)) { echo $result."\r\n"; } } echo (date("H:i:s")); $end = microtime(true); echo "Execution time ".round($end - $start, 2)."\r\n"; die;
Anyone help me...
Comment Exception class declaration in Threads.php
I have followed your document. Here is getting error message. Could you pleae check.
Code: