Depends on the OS used.
For linux:
pclose(popen("php somefile.php &","r"));
pay attention to the rack at the end (very important).
For windows:
pclose(popen("start php.exe somefile.php","r"));
The start keyword is important.
Hope this helps.
source share