Skip to content

Instantly share code, notes, and snippets.

@bshaffer
Created July 12, 2010 18:31
Show Gist options
  • Save bshaffer/472866 to your computer and use it in GitHub Desktop.
Save bshaffer/472866 to your computer and use it in GitHub Desktop.
#!/usr/bin/php
<?php
if (!isset($argv) || !count($argv))
{
throw new Exception("Please provide path of crons to flush");
}
foreach ($argv as $path)
{
echo "\n[$path] \n\n";
echo file_get_contents($path);
file_put_contents($path, '');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment