execute a file

execute a file

am 17.01.2006 04:13:26 von giloosh99

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

Re: execute a file

am 23.02.2006 01:32:32 von Jim Michaels

"giloosh" 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?