adam291086 Posted October 15, 2007 Share Posted October 15, 2007 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 More sharing options...
BlueSkyIS Posted October 15, 2007 Share Posted October 15, 2007 The non-existent class is COM. Do you have code for COM? Link to comment https://forums.phpfreaks.com/topic/73314-solved-simple-com-help/#findComment-369926 Share on other sites More sharing options...
trq Posted October 15, 2007 Share Posted October 15, 2007 The non-existent class is COM. Do you have code for COM? COM is a php extension. Though it would appear php is not configured with that extension built in. What does.... <?php phpinfo(); ?> say about it? Anything? Link to comment https://forums.phpfreaks.com/topic/73314-solved-simple-com-help/#findComment-369929 Share on other sites More sharing options...
adam291086 Posted October 15, 2007 Author Share Posted October 15, 2007 i have loaded phpinfo();, where will i find info on COM? Link to comment https://forums.phpfreaks.com/topic/73314-solved-simple-com-help/#findComment-369932 Share on other sites More sharing options...
trq Posted October 15, 2007 Share Posted October 15, 2007 Scroll down the page, if its not there, then its not installed. Link to comment https://forums.phpfreaks.com/topic/73314-solved-simple-com-help/#findComment-369936 Share on other sites More sharing options...
adam291086 Posted October 15, 2007 Author Share Posted October 15, 2007 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. Link to comment https://forums.phpfreaks.com/topic/73314-solved-simple-com-help/#findComment-369940 Share on other sites More sharing options...
adam291086 Posted October 16, 2007 Author Share Posted October 16, 2007 bump..... Link to comment https://forums.phpfreaks.com/topic/73314-solved-simple-com-help/#findComment-370460 Share on other sites More sharing options...
trq Posted October 16, 2007 Share Posted October 16, 2007 Why don't you simply provide a web interface to your database? Let the users fill in a simple form, save this form in the database, then display it in your webpage. Seams alot more idiot proof than what your planning to do. Link to comment https://forums.phpfreaks.com/topic/73314-solved-simple-com-help/#findComment-370555 Share on other sites More sharing options...
adam291086 Posted October 16, 2007 Author Share Posted October 16, 2007 Thanks man that does sound like a better idea plus i know how to do that. Cheers for the Help Link to comment https://forums.phpfreaks.com/topic/73314-solved-simple-com-help/#findComment-370557 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.