hi.

ze strony http://forums.devshed.com/development-arti...html-88045.html
mam skrypt:

Kod:
  1. <?php 
  2.  
  3. // htmlviewer.php 
  4. // convert a Word doc to an HTML file 
  5.  
  6. //$DocumentPath = str_replace("\", "\", $DocumentPath); 
  7. $DocumentPath="1.doc"; 
  8.  
  9. // create an instance of the Word application 
  10. $word = new COM("word.application") or die("Unable to instantiate application object"); 
  11.  
  12. // creating an instance of the Word Document object 
  13. $wordDocument = new COM("word.document") or die("Unable to instantiate document object"); 
  14. $word->Visible = 0; 
  15. // open up an empty document 
  16. $wordDocument = $word->Documents->Open($DocumentPath); 
  17.  
  18. // create the filename for the HTML version 
  19. $HTMLPath = substr_replace($DocumentPath, 'txt', -3, 3); 
  20.  
  21. // save the document as HTML 
  22. $wordDocument->SaveAs($HTMLPath, 3); 
  23.  
  24. // clean up 
  25. $wordDocument = null; 
  26. $word->Quit(); 
  27. $word = null; 
  28.  
  29. // redirect the browser to the newly-created document header("Location:". $HTMLPath); 
  30.  
  31. header("Location:". $HTMLPath); 
  32. ?>



zgodnie z informacjami zawartymi tutaj:
http://us2.php.net/manual/pl/com.installation.php
i tutaj:
http://us2.php.net/manual/pl/com.configuration.php

stworzylem plik php.ini a w nim:

Kod: [com] ; path to a file containing GUIDs, IIDs or filenames of files with TypeLibs ;com.typelib_file = ; allow Distributed-COM calls com.allow_dcom = true ; autoregister constants of a components typlib on com_load() com.autoregister_typelib = true ; register constants casesensitive com.autoregister_casesensitive = true ; show warnings on duplicate constat registrations com.autoregister_verbose = true " title="Zobacz w manualu PHP" target="_manual

plik php.ini zapisalem w katalogu public_html na FTP.

ale wciaz jak uruchamiam skrypt krzyczy mi ze:
Kod: Fatal error: Cannot instantiate non-existent class: com in /home/website/public_html/word/index.php on line 17 " title="Zobacz w manualu PHP" target="_manual

problem tez w tym, ze po urzyciu komendy phpinfo(); nie widac tam informacji o COM.

HELP! :]