bhatakee Posted September 18, 2018 Posted September 18, 2018 Sir I request to install thread on Tommy server http://bhatakeed.cf/info.php
wolstech Posted September 18, 2018 Posted September 18, 2018 I feel like this would cause a bunch of load...I'm assuming you're looking at this: http://php.net/manual/en/class.thread.php Lets see what Krydos says.
Krydos Posted September 19, 2018 Posted September 19, 2018 Do you need it for some specific software, or just something you're writing yourself?
bhatakee Posted September 20, 2018 Author Posted September 20, 2018 I will write the coding by my self ....but I have will not use that coding regularly...Thanku for replying
Krydos Posted September 22, 2018 Posted September 22, 2018 This is how I do asynchronous php processes which doesn't require anything extra to be installed: $mh = curl_multi_init(); for ($i = 0; $i < $counter; $i++) { $ch[$i] = curl_init(); curl_setopt($ch[$i], CURLOPT_URL, "https://krydos.heliohost.org/script.php?c=".$codes[$i]); curl_setopt($ch[$i], CURLOPT_RETURNTRANSFER, true); curl_multi_add_handle($mh, $ch[$i]); } $running = null; do { curl_multi_exec($mh, $running); } while ($running); for ($i = 0; $i < $counter; $i++) { curl_multi_remove_handle($mh, $ch[$i]); } curl_multi_close($mh);
Recommended Posts