473,466 Members | 1,453 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

PHP COM application invisible

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

Nov 22 '05 #1
4 1717
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
Nov 22 '05 #2
Did you give your Apache service access to the desktop?

Nov 22 '05 #3
Hi Erwin and Chung,

Thank you for the replies.

I was checking the server PC for the word object, and it is invisible,
i.e., I can see a word process running in the "Task Manager", but no
file could be saved to the server PC.

I think the problem is most likely to be the access rights for Apache,
as mentioned by Chung Leong. Could you tell me how to give the Apache
service access to the desktop?

Thanks again
Hugh

Nov 22 '05 #4
Hi Chung,

Just did a search on this group and found your last year's post
regarding a similiar topic. Now the problem has been solved by ticking
the checkbox "Allow service to interact with desktop" in the property
page of the apache service and then restart the service.

Thanks
Hugh

Nov 22 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: christopher green | last post by:
I am writing a C# windows application but I don't want to display any forms, effectively I want it to be invisible on the desktop apart from an icon in the system tray. How can I do this? I know I...
6
by: Tomas Machala | last post by:
Hi, how can I create non-visual application in Visual Studio 2003? Theoretically I could just make windows form invisible but it's not much elegant. I've also tried to use console application but...
2
by: Wiktor Zychla [C# MVP] | last post by:
Hi, I struggle for over an hour with the integrated Cassini web server. the problem I am facing is as follows: when I turn forms authentication on in the web.config file, the website seems to...
3
by: rockdale | last post by:
Hi, All: I have a datagrid with TemplateColumn as following: <asp:TemplateColumn Visible="False" > <ItemStyle Width="0px"></ItemStyle> <ItemTemplate> <asp:Label id="lblMin_Value"...
3
by: Nicol | last post by:
Hi, I have created a console application in c#.net. I also scheduled it in the windows scheduler. In the scheduled task i will specify the command line arguments. When I say "Run", I am getting...
9
by: SeC | last post by:
Hi. Is there any way to detect if application is being killed by 'End Process' via Task Manager ?
9
by: Mel | last post by:
I have 10 columns total. 3 of them are invisible. The rest are read- only BoundFields, 3 of which are editable fields using TemplateFields. Upon editing, I want to validate what the user enters...
5
by: my.shabby.sheep | last post by:
Hi, I want to do the following. I want to make a table column invisible to the screen, but I still want to be able to get the innertext that would have been stored in the cell for certain...
4
by: John Devlon | last post by:
Hi, This is maybe the most stupid question you will ever read ... I'm trying to create a small application, when launched, executes just a few small tasks... No front-end is needed... How can...
8
by: stuart wieder | last post by:
i have an application containing a header with 5 filters (combo boxes) and 2 search boxes (text boxes). When the search boxes are used and return no records in the detail of the form, the actual...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.