Announcement

Collapse
No announcement yet.

PHP and COM server. What am i doing wrong?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • PHP and COM server. What am i doing wrong?

    Good morning,

    Does anybody have any experience with Com Server and PHP?

    When i try to create my object using php (in this case i use the glossary server PBWin90\Samples\Com\Glossary) i receive this error: PHP has encountered an Access Violation at 012F3CAB

    More information: The same object works fine with ASP and Cold Fusion give me an error too.

    I am a little lost.

    Code:
    <?php
    ini_set("display_errors",true);
    
    echo "<br>Hello PB 9!<br>";
    
    //$word = new COM("CDO.Message") or die("Unable to instantiate Word");  // it works !!
    
    $word = new COM("CGlossary") or die("Unable to instantiate Word"); // 
    // oops.. CGlossary Returns: PHP has encountered an Access Violation at 012F3CAB
    
    
    $word = null;
    ?>
    Thanks for your time. Oriol.-
Working...
X