Thanks David for to read my msg and for reply it.

I try to follow your code below but I have any result.

The script can executed but I have any result. Word pgm do not start.

It is possible that I have same configuration bad?

It is possible that the word.exe do not execute from script because  I have not
permission to exec in system root pgm? intead when I exec pgm from promt I am
Administrator!

Ciao Franco.





David Hollister wrote:

> You should try:
>
> Yo - try this
>
> <?
> exec('cmd /c "write.exe" ');
> ?>
>
> -----Original Message-----
> From: Pozzer Franco [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 17, 2002 4:51 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] in Win32 env: calling external pgm from PHP script
>
> I always have found aid on this NG and want to write tanks to all of this.
>
> I hope that also in this occasion to find an aid and of the indications for
> my problem.
>
> My env it is Win32 with Aoache 1.3.24 and PHP 4.2.1.
>
> I have a pgn .exe files that I want to execute from script PHP and I want to
> post it same parameters like par1, par2..... and so on.
>
> I like also to receive from pgm a feedback or return code for to test a
> result of the esecution.
>
> I have make  a script such like below but it not work:
>
>  <?
>   $cmd=('D:\\winnt\\system32\\write.exe');
>  echo"<br>cmd=$cmd<br>";
>  exec($cmd);
> ?>
>
> My system root it is : D:\winnt\system32\.......
>
> My document root it is D:program files\apache group\apache\htdocs.
>
> The url of the browser when I call the script it is:
> http://localhost/exec/zip.php
>
> If  there sameone have same sample code to send to me or same indication how
> to resolve it??????????????
>
> Ciao Franco.
> www.infocamere.it
> [EMAIL PROTECTED]
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to