Im really struggling with this. Ive searched the web, but I still cant find anything that works. Im running on Windows XP Pro, IIS, and PHP 5.0.2.
I have a test.bat(its located in the local directory that Im running the PHP script from) file that contains:
dir
After searching around, Ive found a couple of people using exec() to execute a command. My php file:
echo exec('test.bat');
exec('test.bat', $output);
echo $output
//Im trying both examples to see if one of them works...
Im getting an "Unable to fork [test.bat]" error. Ive also tried shell_exec() - but that gives the exact same error....
Any help is greatly appreciated....