I use the Popen function to execute PHP code asynchronously
//a.php
//b.php
Originally my code in b.php is to update the database (because the logic is too complex so there is no account to come up.), but the b.php code can be executed correctly only if the fread is executed in the a.php $open. If you remove the fread, you will not execute it. (No updates in the database)
Update: It seems to put the pclose away and normal execution. Seems to be the implementation of b.php code point of Time, if the early shutdown will affect the execution, is this the reason?
Reply content:
I use the Popen function to execute PHP code asynchronously
//a.php
//b.php
Originally my code in b.php is to update the database (because the logic is too complex so there is no account to come up.), but the b.php code can be executed correctly only if the fread is executed in the a.php $open. If you remove the fread, you will not execute it. (No updates in the database)
Update: It seems to put the pclose away and normal execution. Seems to be the implementation of b.php code point of Time, if the early shutdown will affect the execution, is this the reason?
Try Pclose (Popen ("php b.php-a $argv 1-b $argv 2 &", ' R '));