Re: Re: executing an external program

From: Date: Mon, 29 Apr 2002 10:13:36 +0000
Subject: Re: Re: executing an external program
References: 1 2  Groups: php.windows 
Request: Send a blank email to php-windows+get-13378@lists.php.net to get a copy of this message
hey ross, your suggested code - exec("COMMAND.COM /C START c:\progra~1\micros~1\office\winword.exe >NUL"); - is trying to do something (starting winword?) without a result. the apache hangs up! i've heard that it makes a difference whether you have installed apache as cgi or as a module. i have it running as a module on win 2k! a ) before reinstalling apache as cgi-version: do you have any idea if this is true? b) or do i have to configure apache (httpd.conf) and/or php.ini with special parameters? by the way: any html and/or php coded webpages are running without problems on my installed localhost! regards Rainer "Ross Fleming" <r.fleming@totalise.co.uk> schrieb im Newsbeitrag news:MABBLJAPGGBPMIPHMAGBMEEMCGAA.r.fleming@totalise.co.uk... > 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 > > > >

« previous php.windows (#13378) next »