PHP ActiveX
PHP ActiveX
Transition from MailMan.GetUidls to MailMan.FetchUidls
Provides instructions for replacing deprecated GetUidls method calls with FetchUidls.Chilkat PHP ActiveX Downloads
<?php
$success = 0;
$mailman = new COM("Chilkat.MailMan");
// ...
// ...
// ------------------------------------------------------------------------
// The GetUidls method is deprecated:
// sa is a Chilkat.StringArray
$sa = $mailman->GetUidls();
if ($mailman->LastMethodSuccess == 0) {
print $mailman->LastErrorText . "\n";
exit;
}
// ...
// ...
// ------------------------------------------------------------------------
// Do the equivalent using FetchUidls.
// Your application creates a new, empty StringTable object which is passed
// in the last argument and filled upon success.
$st = new COM("Chilkat.StringTable");
$success = $mailman->FetchUidls($st);
if ($success == 0) {
print $mailman->LastErrorText . "\n";
exit;
}
?>