Home >Backend Development >PHP Tutorial >PHP uses the popen method to implement asynchronous operations.
php uses the popen method to implement asynchronous operation problems:
Using the popen method to perform a video transcoding operation.
In order for the transcoding to be executed asynchronously, how can we know that this sentence has been executed? That’s how you know the transcoding is finished.
Reply content:
Record before execution and change it after execution
Try pclose(popen("php b.php -a $argv1 -b $argv2 &",'r'));
The above is the content of PHP using the popen method to implement asynchronous operations. For more related content, please pay attention to the PHP Chinese website (www.php.cn)!