You are here: Re: PHP exec function. « PHP « IT news, forums, messages
Re: PHP exec function.

Posted by JamesBenson on 09/28/01 11:18

I prefer using the backtick operator for the reason that I could never
get exec(); to work.


http://php.net/manual/en/language.operators.execution.php






Bob Snowdon wrote:
> I run Windows XP Home SP2, Apache 1.3.24 and PHP 4.3.1. I have a php script
> which uses the exec function to invoke a win32 application which writes its
> results to a file which is then used in what is returned to the browser by the
> script. It works.
>
> I wanted to install the same script invoking the same win32 application on a
> friends machine which runs Windows XP Pro SP2, Apache 2 and PHP 5.0.4. It
> doesn't work.
>
> Investigation/debugging indicates that the exec call simply doesn't invoke the
> win32 application at all with no error indications from PHP. (echo statements
> either side of the call). I have checked things like the path to the
> application (I can call the application from the run prompt ok) and am now
> completely stumped.
>
> The relevant bit of my php script is:
>
> ....
> $execstring="winposd.exe \"${physical}-${logical}-${parameter}\"";
> $output=exec($execstring);
> ....
>
> I am sure this is something very simple! But obviously beyond me.
>
> Bob Snowdon

 

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

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