Why do I receive a message "cant fork ..." if I try to execute an external program (PassThru, System, Exec) - running PHP4, WinNT SP 5, PWS.
I'm running php4 on a Data General Unix platform, and getting the same error, any help for this prob
Nov 22nd, 2008 20:50
haytham ali, dman, ha mo, Articles Hosting, Arijit Sarbagna, Raino Pikkarainen, Stephen Mubita, Zbynek Skvor, Mike Ciaccio, http://www.ttnr.org
This problem also exists on PHP4.0.1pl2 (both CGI and ISAPI), WinNT4
6, IIS4. It doesn't exist on PHP3. The "can't fork [myprog]" error
message only comes the first time the php script is run, after that
script just hangs.
This problem may be avoided by putting the cmd.exe in the same folder
where your PHP script is running & then try running the exec function.
Remember, once you place cmd.exe in the folder, you have to allow
& IIS User to be able to run & execute cmd.exe.
Other way could be to set permission on the root cmd.exe i.e in
folder, but that might create a security risk & thus is not advisable.
Hope this works for you.