PHP Extension
PHP Extension
Transition from Cert.GetValidToDt to Cert.ValidToStr
Provides instructions for replacing deprecated GetValidToDt method calls with ValidToStr.Chilkat PHP Extension Downloads
<?php
include("chilkat.php");
$cert = new CkCert();
// ------------------------------------------------------------------------
// The GetValidToDt method is deprecated:
// ckdt1 is a CkDateTime
$ckdt1 = $cert->GetValidToDt();
if ($cert->get_LastMethodSuccess() == false) {
print $cert->lastErrorText() . "\n";
exit;
}
// ...
// ...
// ------------------------------------------------------------------------
// Do the equivalent using the ValidToStr property
$ckdt2 = new CkDateTime();
$ckdt2->SetFromRfc822($cert->validToStr());
?>