Created
April 1, 2009 13:57
-
-
Save anttih/88691 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sdasd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment