I want to load an ActiveX DLL in my PHP page and load its functions.
For example: CAPICOM.DLL
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.