How do you run a .bat file from PHP?
- by undefined
Can anyone tell me how to execute a .bat file from a PHP script?
I have tried -
exec("C:[path to file]");
system("C:[path to file]");
nothing is working. Ive checked the PHP manuals and googled around but cant find a good answer. Anyone know where im going wrong?
I'm running windows 2003 server and have successfully manually ran the .bat file and it does what i need it to, I just need to be able to launch it programatically.
thanks