You are here: Re: PHP COM application invisible « PHP Programming Language « IT news, forums, messages
Re: PHP COM application invisible

Posted by Erwin Moller on 11/22/05 12:10

Hugh wrote:

> Hi all,
> I am having problem with COM objects in PHP. I am running PHP 4.4.1 on
> apache server 2.0.55, on windows 2000.
>
> I tried the first COM example in the PHP manual
> (http://www.php.net/manual/en/class.com.php). The example runs fine if
> I use PHP in command line, i.e., run it like: c:\php\>php
> c:\apache\apache2\htdocs\comtest.php, the word application starts and
> after running the script, a word document is saved in the hard drive as
> expected. But when I try to run it through web server, that is, type
> http://localhost/comtest.php in the IE address bar, word application
> run in background, and no file was saved at the end. It seems that
> "$word->Visible = 1;" did not work in this case.
>
> Any idea how to make the word application visible? Thanks.
>
> Best regards
> Hugh

Hi Hugh,

I think you are confusing client and server.
If you call some php-script and it instantiates a COM object, this is done
on the server (apache et all), not on the client (webbrowser).

I expect the com WAS instantiated on the server, and maybe saved there too.
Check that.

If you need the wordapplication to run in the CLIENT (browser) you need a
different approach, probably with javascript or VBscript.

Regards,
Erwin Moller

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация