Re: Re: executing an external program

From: Date: Mon, 29 Apr 2002 01:39:01 +0000
Subject: Re: Re: executing an external program
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-13374@lists.php.net to get a copy of this message
For win 2k/xp: <? exec("CMD /C START c:\progra~1\micros~1\office\winword.exe >NUL"); ?> Ted ----- Original Message ----- From: "Ross Fleming" <r.fleming@totalise.co.uk> To: <Rainer.Bruch@t-online.de>; "PHP Windows mailing list" <php-windows@lists.php.net> Sent: Sunday, April 28, 2002 7:32 PM Subject: RE: [PHP-WIN] Re: executing an external program > OK, I've just found a way to do it (in the comments for exec() on the php > webpage), however I DON'T know if it will work on Win2000, I'll let you try, > it works on win98 anyway: > > <? > exec("COMMAND.COM /C START c:\progra~1\micros~1\office\winword.exe >NUL"); > ?> > > This opens winword and keeps it running and completes the web page too. > > If this doesn't work in win2K, maybe someone on this list may know an > alternative?.. > > Ross > > -----Original Message----- > From: Rainer Bruch [mailto:Rainer.Bruch@t-online.de] > Sent: 28 April 2002 23:30 > To: r.fleming@clara.co.uk > Subject: AW: [PHP-WIN] Re: executing an external program > > > hey ross, > thanks for your help by sending this e-mail. > maybe you have a solution for my problem described below? > since you have kindly e-mailed to me i feel free to inform you as following > about the the e-mail > conversation concerning this matter between mike flynn and myself. > if you read this you can find that you are right, the server hangs up! > > > "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 > > > > > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.windows (#13374) next »