Posted by Jim Michaels on 02/23/06 02:32
"giloosh" <giloosh99@gmail.com> wrote in message
news:1137467606.725893.63780@g43g2000cwa.googlegroups.com...
> hello,
> i want to execute an app on the server.
> i tried using the shell_exec() and exec() and popen() and system()
> functions.
> when ever i used either of the functions i would notice that the opened
> app, cmd.exe and php-cgi.exe process are running in the background and
> never ending. this also causes the php page to timeout.
> if were to run the batch file by hand it wold execute like its suppose
> to. when i do it through php it doesnt.
> my code looks like this:
> <?
> exec("start.bat");
> ?>
>
> what could i be doing wrong?
> thanks
>
could you be missing the command
EXIT
from the end of the batch file?
[Back to original message]
|