Re: in Win32 env: calling external pgm from PHP script

From: Date: Thu, 19 Sep 2002 07:09:32 +0000
Subject: Re: in Win32 env: calling external pgm from PHP script
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-15900@lists.php.net to get a copy of this message
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:franco.pozzer@infocamere.it] > Sent: Tuesday, September 17, 2002 4:51 AM > To: php-windows@lists.php.net > 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 > franco.pozzer@infocamere.it > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.windows (#15900) next »