Re: executing an external program
| From: | Webmaster | Date: | Sat, 27 Apr 2002 21:17:48 +0000 |
| Subject: | Re: executing an external program | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-13362@lists.php.net to get a copy of this message | ||
If you have your mime type settings set correct in your Internet Explorer,
you just have to do a HTML call to a Winword document to make Winword
integrate with the browser !
The way you are trying now is the most dangerous one, because it can then
too execute other programs remotely !
This is also why most servers have the _exec command turned off....
C vd Veen
"Rainer Bruch" <rainer.bruch@t-online.de> schreef in bericht
news:20020427164507.35161.qmail@pb1.pair.com...
> i am new in using and understanding php. need help in following issue:
> opening (executing) an external program (not a file) like "winword.exe"
with
> php4.
> my system-configuration:
> - windows 2000
> - php4 1.1.1
> - winword execution program-path is:
> "c:\programme\micosoft office\office\winword.exe"
>
> please, will somebody out there will help me with the complete php-code
> like:
> <?
> "code to execute the winword-program";
> ?>
>
> i have asked a so called specialist who gave the following (not
functioning,
> no error message) code:
> <?
> shell_exec("c:\programme\microsoft office\office\winword.exe");
> ?>
>
> thanks to all who will help me
> rainer
>
>