(PHP ActiveX) Transition from MailMan.GetUidls to MailMan.FetchUidls
Provides instructions for replacing deprecated GetUidls method calls with FetchUidls. Note: This example requires Chilkat v11.0.0 or greater.
<?php
// For versions of Chilkat < 10.0.0, use new COM('Chilkat_9_5_0.Chilkat.MailMan')
$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.
// For versions of Chilkat < 10.0.0, use new COM('Chilkat_9_5_0.Chilkat.StringTable')
$st = new COM("Chilkat.StringTable");
$success = $mailman->FetchUidls($st);
if ($success == 0) {
print $mailman->LastErrorText . "\n";
exit;
}
?>
|