Page 1 of 1

exec function does not seem to work for me

Posted: Tue Dec 07, 2010 3:16 pm
by lostconjugate
When I try to use the following command

exec('c:\test.bat');

The webpage just hangs, and not because the batch file is still running. Inside the batch file it just says

echo test > test.log

Re: exec function does not seem to work for me

Posted: Wed Dec 08, 2010 1:22 am
by Christopher
Does the webserver have permission to run test.bat?

Re: exec function does not seem to work for me

Posted: Wed Dec 08, 2010 11:51 am
by AdrenalineSeed
Good question, I tried putting the batch file in the wwwroot directory where network service has rights. But not sure if this is the account that PHP uses.

Re: exec function does not seem to work for me

Posted: Mon Dec 13, 2010 10:05 am
by AdrenalineSeed
bump