|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #45064 Not able to open Msword in Ubuntu
Submitted: 2008-05-22 09:52 UTC Modified: 2008-05-22 10:54 UTC
From: maniviswa at gmail dot com Assigned:
Status: Not a bug Package: Compile Warning
PHP Version: 5.2.6 OS: Ubuntu
Private report: No CVE-ID: None
 [2008-05-22 09:52 UTC] maniviswa at gmail dot com
Im using this code,
$comObject = new COM("Word.Application");
But im getting error like this,what might be the problem
error is Fatal error: Class 'COM' not found in /opt/lampp/htdocs/word/example.php on line 2

Reproduce code:
$comObject = new COM("Word.Application");

Expected result:
/opt/lampp/htdocs/word/example.php on line 2

Actual result:
A plain Msword Document


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2008-05-22 10:38 UTC]
COM is windows only, see the manual for further info.
 [2008-05-22 10:54 UTC]
Well, the problem is, you're trying to open MICROSOFT WORD in Linux 
using a Windows only extension.

A quick fix: Install windows.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sat Sep 23 17:01:24 2023 UTC