I just switched over from Apache to IIS and followed the installation and configuration instructions to the letter. My php test pages work fine and everything seems to be in order except that my pages that use COM functionality now generate the error below.
CODE ----------- <?php // convert a Word doc to an HTML file $DocumentPath = str_replace("\\\\", "\\", $_GET["DocumentPath"]); // THIS IS THE LINE THAT GENERATES THE ERROR $word = new COM("word.application") or die("Unable to instantiate application object"); // creating an instance of the Word Document object $wordDocument = new COM("word.document") or die("Unable to instantiate document object"); // open up an empty document $wordDocument = $word->Documents->Open($DocumentPath); // create the filename for the HTML version $HTMLPath = substr_replace($DocumentPath, 'html', -3, 3); // save the document as HTML $wordDocument->SaveAs($HTMLPath, 8); // clean up $wordDocument = null; $word->Quit(); $word = null; echo "<a href='$HTMLPath'>load...</a>"; ?> ERROR --------------- Warning: Unable to obtain IDispatch interface for CLSID {000209FF-0000-0000-C000-000000000046}: Access is denied. in c:\inetpub\wwwroot\COM\htmlviewer.php on line 9 This worked fine under Apache. Thanks, Ron -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php