Skip to content

Instantly share code, notes, and snippets.

Last active Jun 6, 2016
What would you like to do?
Fever RSS reader modification so it can be run via cronjob php call (without curl)
*/20 * * * * php /path/to/your/fever/index.php refresh
# or, as in my case, with php-cgi
*/20 * * * * php-cgi /path/to/your/fever/index.php refresh
if (isset($_GET['errors'])) { error_reporting(E_ALL); } else { error_reporting(0); }
//parse arguments into $_GET manually
if(isset($argv[1])) {
parse_str($argv[1], $urlparams);
if($urlparams['refresh']) $_GET['refresh'] = true;
define('FIREWALLED', true);
define('FIREWALL_ROOT', 'firewall/');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment