Warning: exec(): Unable to fork...when calling batch file from PHP
I am trying to call a batch file from PHP.
The batch file is just a confirmation message. The batch file does run from from a command line.
I keep getting the error: Warning: exec(): Unable to fork
I posted this question before and got it to work. I needed to restore the server to a previous state. Now, I cannot get exec statements to work again.
I gave Read and Read & Write permissons to user IUSR_COMPUTERNAME on CMD.EXE. Giving full permission did not help. I even gave all domain users full permission to see if that would help. It didn't
I tried to copy the CMD.EXE to my C:\PHP folder.
I tried the follwing commands
Warning: exec(): Unable to fork [ConfirmRecipe.bat] in C:\Inetpub\wwwroot\CallFile6.php on line 2
Warning: shell_exec(): Unable to execute 'ConfirmRecipe.bat' in C:\Inetpub\wwwroot\CallFile6.php on line 2
Warning: shell_exec(): Unable to execute 'C:\Inetpub\wwwroot\RecipeConfirm.bat' in C:\Inetpub\wwwroot\CallFile6.php on line 2
Is there anything in the php.ini that could be causing this?
This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.