By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,751 Members | 1,149 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,751 IT Pros & Developers. It's quick & easy.

PHP and COM

P: n/a
Hi,

Im having problems getting my PHP to work with COM on a win2003 server,
ive got the same code running on a winxp box with no problems.

$excel = new COM("excel.application") or die("Unable to instanciate
excel");

Excel is installed, if i try and run this line then i get the message :

'Failed to create COM object `excel.application': Access is denied

Tried various other COM objects like word but get the same message so
its not unique to excel.

I dont know why access is denied or what i can do to solve it. COM is
enabled in the php.ini page,
Thanks for any help.

Paul

Sep 22 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
pa**********@hotmail.com wrote:
Hi,

Im having problems getting my PHP to work with COM on a win2003 server,
ive got the same code running on a winxp box with no problems.

$excel = new COM("excel.application") or die("Unable to instanciate
excel");

Excel is installed, if i try and run this line then i get the message :

'Failed to create COM object `excel.application': Access is denied

Tried various other COM objects like word but get the same message so
its not unique to excel.

I dont know why access is denied or what i can do to solve it. COM is
enabled in the php.ini page,
Thanks for any help.

Paul
It looks like the web server user doesn't have permissions to create the
COM object. You might want to check one of the Windows admin newsgroups
to see exactly what permissions you need to set.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Sep 22 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.