Sample code for 30+ languages & platforms
PHP ActiveX Requires Chilkat v11.0.0+

Transition from Cert.GetValidFromDt to Cert.ValidFromStr

Provides instructions for replacing deprecated GetValidFromDt method calls with ValidFromStr.

Chilkat PHP ActiveX Downloads

PHP ActiveX
<?php

$cert = new COM("Chilkat.Cert");

//  ------------------------------------------------------------------------
//  The GetValidFromDt method is deprecated:

// ckdt1 is a Chilkat.CkDateTime
$ckdt1 = $cert->GetValidFromDt();
if ($cert->LastMethodSuccess == 0) {
    print $cert->LastErrorText . "\n";
    exit;
}

//  ...
//  ...

//  ------------------------------------------------------------------------
//  Do the equivalent using the ValidFromStr property

$ckdt2 = new COM("Chilkat.CkDateTime");
$ckdt2->SetFromRfc822($cert->ValidFromStr);

?>