You are here: Re: execute a file « PHP SQL « IT news, forums, messages
Re: execute a file

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?

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация