2016-02-29 55 views

回答

0
Prove all, and finally the solution for me is(uniformPortalServer): 

pclose(popen(“start/B”。$ cmd,“r”));

function execInBackground($cmd) { 
    if (substr(php_uname(), 0, 7) == "Windows"){ 
     pclose(popen("start /B ". $cmd, "r")); 
    } 
    else { 
     exec($cmd . " > /dev/null &"); 
    } 
}