I am trying to ececute a batch file from php.
When I open the page, I get the following error:
Warning: exec(): Unable to fork [UploadRecipeToMas.bat] in C:\Inetpub\wwwroot\CallFile.php on line 2
The PHP code is:
The UploadRecipeToMas.bat file has a single line
osql -E -d Iris -S Gamay-srv1 -Q "Exec MASExport ;
When I double click the batch file, the stored procedure is executed
I gave Read & Execute and Read permissions to Internet Guest Accout MyDomain\IUSR_Server1 in the following files
I am running php 5.3.7 and IIS 6.0, Allowing Anonymous Access on Server 2003
Any ideas. You help will be appreciated.