exec() wont run windows programs
Posted 20 September 2006 - 08:38 PM
I run 3 command line programs using that same piece of code, and it seems to work perfectly fine. When I get to a normal windows program I have to run, it wont run. I even tried a bat file but that doesn't work either. The php script just is stuck at load unless I take that program out. Any suggestions?
Posted 21 September 2006 - 06:33 AM
<?php exec("start /b \"C:\path\to\file.exe\"",$out); echo "<pre>",print_r($out),"</pre>"; ?>
Posted 21 September 2006 - 08:34 PM
Posted 21 September 2006 - 08:37 PM
Posted 21 September 2006 - 08:46 PM
I can't run this program on any other server besides the one I have and my own computer. It works on my own computer, and the program works fine when i run it myself on the server. However, whenever I try to run it by script from the server, either by local host or accessing it from my own computer, it doesn't work. I have even tried to run a bat file which runs that program. No success.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users