Faqts : Business : Programming : Shopping For You : PHP

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

25 of 100 people (25%) answered Yes
Recently 5 of 10 people (50%) answered Yes

Entry

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 
SP 
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 
the 
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 
IUSER 
& 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 
systems 
folder, but that might create a security risk & thus is not advisable.
Hope this works for you.
Regards
Arijit Sarbagna
http://www.solutions2day.com
==
bugs.php.net/bug.php?id=37619&edit=2
http://6rb.com
http://fr7.com
http://dir.msryat.org
http://6ef.com
http://forums.msryat.org
http://www.arabcar.com
http://www.alshalah.com
http://msryat.org/egypt/1.htm
http://msryat.org/egypt
http://msryat.org