Reply to Re: Calling application (.exe) from PHP on XP

Your name:

Reply:


Posted by Roman Ziak on 04/11/06 15:45

Mike Youell wrote:
> Hi,
>
> I am trying to call an application from php. I have tried exec() and
> system() and even popen() all to no avail.
>
>
> Can an application be called if it brings up a window? The app I am
> calling has a command line interface, but it insists on bringing up
> it's standard window also.
>
>
> At the moment the .exe file displays in Windows Task Manager in the
> Processes tab.
>
> The PHP script hangs (until timeout) and the .exe doesn't do the job it
> should.
>
> I am probably being daft :o)
>
> Thanks in advance for any help or tips,
> Mike Youell.
>


PHP executes in context of IIS (or other webserver), that means it has
less privileges and usually cannot interact with the desktop.

IIS has settings in Control Panel -> Administration Tools -> Services ->
World Wide Web Publishing -> Log On tab -> Allow service to interract
wiht desktop.

HTH
Roman

[Back to original 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

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