|
Posted by Hugh on 11/22/05 02:43
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
Navigation:
[Reply to this message]
|