Hi John and Elijah, Thank you for the input. I spent most of the night trying to get this to work and determined the following: - START /B does not appear to work. - pclose(popen($cmd)); still hangs the parent - I found COM(Wscript.Shell) ... $->Run(...) on the web but could not get it working. It would spawn a cmd.exe but would not run the rest of the command. The cmd.exe child would not die. If I ran the same command from Start > Run it would work just fine. $WshShell = new COM(Wscript.Shell); $oRun = $WshShell->Run("cmd /C php.exe -f child.php"); - As a last resort I was going to compile Elijah's C code but was really hoping there would be a built-in method. I might still end up using it in the end. - Found COM(Wscript.Shell) ... $->Exec() on MSDN and it worked! I have to give the full path to the exe and script as environmental variables are not available. All in all, I have no clue if COM ... ->Exec() is the best way to do this, if it is secure, or why COM .. ->Run() did not work. I have not used COM much and found it hard to wade through the doc at php.net. Ultimately, I have learned that it would be much nicer if you could simply fork in Windows as you can in *nix. If there are any other suggestions out there, please let me know! I am all ears and trying to learn.
Thank you for the support!
Michael J. Forte Web Designer, WR Web Designs Webmaster, Town of LaFayette Software Engineer, IBM Education: Clarkson University Alum (2005) :: Resume E-mail: michaelfo...@hotmail.com "Often those who work the hardest are the luckiest..." Elijah Insua wrote: Here is some C code I had laying around which executes a detached process, much like |
_______________________________________________ New York PHP User Group Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org/show_participation.php