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

Transition from ZipEntry.GetDt to ZipEntry.FileDateTimeStr

Provides instructions for replacing deprecated GetDt method calls with FileDateTimeStr.

Chilkat PHP ActiveX Downloads

PHP ActiveX
<?php

$entry = new COM("Chilkat.ZipEntry");

//  ...
//  ...

//  ------------------------------------------------------------------------
//  The GetDt method is deprecated:

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

//  ...
//  ...

//  ------------------------------------------------------------------------
//  Do the equivalent using FileDateTimeStr.

$dt = new COM("Chilkat.CkDateTime");
$dt->SetFromRfc822($entry->FileDateTimeStr);

?>