0

Office is running in Wine, meaning I have a running Version (2003).

But when I try to create a new COM object I just get the following error:

Fatal error: Class 'COM' not found

<?php
$com = new COM('Word.Application');
$com->close();

Is there a way to get this working without installing Windows?

Jota
  • 17,281
  • 7
  • 63
  • 93
wodka
  • 1,320
  • 10
  • 20

1 Answers1

0

You have to run PHP under Wine as well, or have some sort of program running under Wine that can act as a proxy.

Ignacio Vazquez-Abrams
  • 776,304
  • 153
  • 1,341
  • 1,358