Jump to content

[SOLVED] Simple COM help


adam291086

Recommended Posts

Hello it's me again. I am trying to do a simple COM with the following code

 

<html>

<body>

<?php
// starting word
$word = new COM("Word.Application" ) or die("Unable to instantiate Word");
$word->Documents->Open("test.doc");
$word->Quit();
?>


</body>
/html>

 

As i am new to php and have never tried this before i dont know how to solve the error below. Any help is really appreciated.

 

Fatal error: Cannot instantiate non-existent class: com in /homepages/12/d214897219/htdocs/adam/test code/file_get_contents().php on line 7

 

 

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/73314-solved-simple-com-help/
Share on other sites

Its not installed then but i am not sure if i am doing the right thing. Basically i want a word document with a table inside. This table of information changes daily. The users for this are complete idiots. So what i wanted is a simple word document for the users to change the table and upload to the server. Once uploaded PHP does the work and takes the tables and inserts it into a webpage.

 

Can you point me in the right direction please

 

Thanks for the help so far.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.