Skip to content

Instantly share code, notes, and snippets.

@anttih
Created April 1, 2009 13:57
Show Gist options
  • Save anttih/88691 to your computer and use it in GitHub Desktop.
Save anttih/88691 to your computer and use it in GitHub Desktop.
<?php
// Adding some stupid comments
$system = dirname(dirname(__FILE__));
ini_set('include_path', "$system/include");
require_once 'Solar.php';
Solar::start("$system/config/Solar.config.php");
$campaigns = Solar::factory('Victoria_Model_Campaigns');
$struct = $campaigns->fetch(1);
foreach ($struct->recipients as $key => $item) {
$item->status = Victoria_Model_Recipients::STATUS_SENT;
$item->save();
$item->free();
unset($struct->recipients[$key]);
echo memory_get_peak_usage() , "\n";
}
Solar::stop();
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment