1

i have a web application and I'm trying to crete a com object for microsoft word

$word = new COM("word.application") or die ("Could not initialise Object.");

I've installed office 2010 on my server and at first i got a permissions denied error, so I followed this link to add permissions: http://www.figured-it-out.com/figured-out.php?sid=24

but now im getting this error: Failed to create COM object `word.application': Server execution failed any help please?

Daniel Katzan
  • 526
  • 1
  • 7
  • 29

1 Answers1

0

Always follow these steps

  1. On the command line enter DCOMCNFG
  2. Click right on Console Root >Component Service > Computers > My Computer and select Properties
  3. On the tab COM Security > Access Permissions click on Edit Default and add the user (e.g. IIS_IUSRS) or service
  4. Check allow local access

More info look here

Community
  • 1
  • 1
Harish Prasanna
  • 108
  • 1
  • 8
  • I followed thos steps already, and stopped getting the permissions denied error, but now im getting another error:Failed to create COM object `word.application': Server execution failed – Daniel Katzan Nov 14 '14 at 17:45
  • What is the PHP version that you are using? It was a known bug in PHP before. Update to PHP5 if not latest.. – Harish Prasanna Nov 14 '14 at 17:47