dongzhengzhong1282
2014-04-06 13:22
浏览 244
已采纳

如何在PHP中使用activex dll?

I want to load an ActiveX DLL in my PHP page and load its functions.

For example: CAPICOM.DLL

图片转代码服务由CSDN问答提供 功能建议

我想在PHP页面加载ActiveX DLL并加载其功能。

例如:CAPICOM.DLL

  • 写回答
  • 好问题 提建议
  • 关注问题
  • 收藏
  • 邀请回答

2条回答 默认 最新

  • dousi1097 2014-04-22 12:41
    已采纳

    My friend is possible. Code:

    <?php   
    try{
    $signedData = $_POST['datatosign'];
    
    $verification = new \COM("CAPICOM.SignedData");
    $verification->Verify($signedData,false,0);
    $signIsOk = true;
    foreach ($verification->Certificates as $certificate)
    {               
    }
    
    }catch(\Exception $ex){
    $signIsOk = false;
    echo $ex->getMessage();     
    }
    
    ?>
    

    this code work correctly.

    已采纳该答案
    评论
    解决 无用
    打赏 举报
  • drv16821 2014-04-13 06:01

    Don't. CAPICOM has been discontinued — it is not available for Windows 7 or later.

    For a list of alternatives to CAPICOM, please see:

    http://msdn.microsoft.com/en-us/library/cc778518.aspx

    评论
    解决 无用
    打赏 举报

相关推荐 更多相似问题