Ok, here's the small block of code so far, and $contents holds a comma delimited file's contents (clever huh):
...
$contentlines = explode("\n" , $contents);
unset($contents);
while(list($key, $value) = each($contentlines))
{
$contentarray = explode("," , $value);
list($tracking, $email, $orderid) = $contentarray;
{
$ups = new ssl_ups("$upskey", "$upsid", "$upspass");
$ups->SetUrl("https://www.ups.com/ups.app/xml/Track");
$ups->Post("$tracking");
if ($ups->GetStatus() == "done")
{
$result = $ups->GetResultArray();
while(list($key2, $value2) = each($result))
{
echo "[$key2] => $value2<br>\n";
}
}
unset($ups);
flush();
}
}
...
My problem is, on my 30th post to the server, I run out of memory when XPath (which is used by my UPS class) looks at the results (which are no bigger than any previous results). I would have thought that unset would have freed up my previously used memory in $ups?
Any thoughts on how to get this to work past 30?