php-windows Digest 22 Jan 2009 21:22:49 -0000 Issue 3557

Topics (messages 29127 through 29130):

Anyone running Winword on Windows 2003 Server?
        29127 by: Sascha Meyer
        29128 by: George Pitcher

Re: Simply not working
        29129 by: James Crow

Executing .exe files Issues
        29130 by: Alice Wei

Administrivia:

To subscribe to the digest, e-mail:
        php-windows-digest-subscr...@lists.php.net

To unsubscribe from the digest, e-mail:
        php-windows-digest-unsubscr...@lists.php.net

To post to the list, e-mail:
        php-wind...@lists.php.net


----------------------------------------------------------------------
--- Begin Message ---
Good Morning,

after a lot of testing on my Windows 2k3 server I stopped trying to use Winword 
through COM, because the returned Word COM object never worked (I could neither 
open or create a document, nor could I even retrieve version infos from the 
Word instance, nothing ever worked). 
I used Windows 2003 Server SP1, PHP 5.2.6 with office 2003 for my tests.

Now I wonder if anyone ever used Word on a Win 2003 Server? And what did you 
have to configure to use it?

Thanks for your comments!

Regards, Sascha
-- 
Sensationsangebot verlängert: GMX FreeDSL - Telefonanschluss + DSL 
für nur 16,37 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K1308T4569a

--- End Message ---
--- Begin Message ---
Sascha,

>| after a lot of testing on my Windows 2k3 server I stopped trying
>| to use Winword through COM, because the returned Word COM object
>| never worked (I could neither open or create a document, nor
>| could I even retrieve version infos from the Word instance,
>| nothing ever worked).
>| I used Windows 2003 Server SP1, PHP 5.2.6 with office 2003 for my tests.
>|
>| Now I wonder if anyone ever used Word on a Win 2003 Server? And
>| what did you have to configure to use it?

Never got as far as Win 2003, still on good old NT4, but I was never happy
with Winword running on the server. I have now moved to using the
'clsMsDocGenerator.php' class. By formatting the document as html and then
pushing it into the class instance, it is possible to generate Word
documents with a small footprint without the overhead of COM (meaning also
that it doesn't require a Windows server either).

Hope this helps.

George


--- End Message ---
--- Begin Message ---
I am still running Apache 2.0. I have the need to use PHP 4 at times to
support legacy code (Zend Encoded so no source or way to port it
forward). If not I would be running Apache 2.2.

Cheers,
James


On Thu, 2009-01-15 at 09:25 +0100, Mario Brandt wrote:
> Hi James,
> why do you use LoadModule php5apache2.dll ?
> Shouldn't you use php5apache2_2.dll for Apache 2.2.x ? 
> 
> Mario
> 
> -----Original Message-----
> From: James Crow [mailto:ja...@ultratans.com] 
> Sent: Wednesday, January 14, 2009 7:34 PM
> To: Edward W. Rouse
> Cc: php-wind...@lists.php.net
> Subject: Re: [PHP-WIN] Simply not working
> 
> Sounds like you are missing the apache httpd.conf directives for php.
> Here is snippet from my httpd.conf file:
> 
> ##
> # PHP Section
> ##
> #LoadModule php4_module "c:/php/php4apache2.dll"
> LoadModule php5_module "c:/php/php5apache2.dll"
> AddType application/x-httpd-php .php
> AddType application/x-httpd-php .php3
> PHPIniDir "C:/php"
> 
> My php is installed in c:\php. You need to make sure you follow the php
> install instructions and copy the correct SAPI module to the C:\php
> directory.
> 
> Cheers,
> James
> 
> 
> On Wed, 2009-01-14 at 12:19 -0500, Edward W. Rouse wrote:
> > Vista Business, Apache 2.2.11-win32-x86-openssl-0.9.8i.msi,
> > mysql-noinstall-5.1.30-win32.zip and php-5.2.8-win32-installer.msi.
> > 
> >  
> > 
> > Apache works, but php pages show the code rather than execute it. I 
> > have attached the php.ini and http.conf. I am not running apache as a 
> > service, rather am running in a command window since this is just for 
> > evaluating php software packages and not for production.
> > 
> >  
> > 
> > I went back thru the archives and found an entry from May 2008 that 
> > was relevant and tried the attached ini file with no change. The log 
> > files shoe no errors.
> > 
> >  
> > 
> > Error.log
> > 
> > [Tue Jan 13 15:44:40 2009] [notice] Apache/2.2.11 (Win32) configured
> > -- resuming normal operations
> > 
> > [Tue Jan 13 15:44:40 2009] [notice] Server built: Dec 10 2008 00:10:06
> > 
> > [Tue Jan 13 15:44:40 2009] [notice] Parent: Created child process 3376
> > 
> > Apache server shutdown initiated...
> > 
> > Child 3376: Child process is running
> > 
> > [Tue Jan 13 15:44:41 2009] [notice] Child 3376: Acquired the start 
> > mutex.
> > 
> > [Tue Jan 13 15:44:41 2009] [notice] Child 3376: Starting 64 worker 
> > threads.
> > 
> > [Tue Jan 13 15:44:41 2009] [notice] Child 3376: Starting thread to 
> > listen on port 8585.
> > 
> >  
> > 
> > Access.log
> > 
> > 127.0.0.1 - - [13/Jan/2009:14:47:14 -0500] "GET / HTTP/1.1" 200 44
> > 
> > 127.0.0.1 - - [13/Jan/2009:14:59:19 -0500] "GET 
> > /<*****>/install/install.php HTTP/1.1" 200 14730
> > 
> > 127.0.0.1 - - [13/Jan/2009:15:12:56 -0500] "GET 
> > /<*****>/install/install.php HTTP/1.1" 304 -
> > 
> > 127.0.0.1 - - [13/Jan/2009:15:15:22 -0500] "GET /favicon.ico HTTP/1.1"
> > 404 209
> > 
> > 127.0.0.1 - - [13/Jan/2009:15:44:51 -0500] "GET 
> > /<*****>/install/install.php HTTP/1.1" 200 14730
> > 
> >  
> > 
> > Shows several connections, some to the main page. The <*****> is to 
> > obfuscate the packages we are testing. It's a company thing.`
> > 
> >  
> > 
> > Edward W. Rouse
> > 
> > 
> > --
> > 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
> 
> 


--- End Message ---
--- Begin Message ---
Hi, PHP Window Users:
 
  I have a snippet of code as in the following:
 
<?php 
$filename="Test123.txt";
shell_exec("C:\Inetpub\wwwroot\hello.exe -f$filename") or die ("Failed");

?>
The hello.exe was written in C and is meant to produce 6 files. The issue here 
is that when I tried to run the PHP here, I keep on seeing "Failed". Am I not 
supposed to execute exe files with this method? 
 
Any tip on this would be great. 
 
Alice
_________________________________________________________________
Express yourself with gadgets on Windows Live Spaces
http://discoverspaces.live.com?source=hmtag1&loc=us

--- End Message ---

Reply via email to