Note for Windows users using popen with start to run an external script without having php wait.
e.g.:
pclose( popen( 'start /b php someLongScript.php *> nul', 'rb' ) );
If start can't find the exe it will open a popup message and pclose hangs until the popup is closed.