Skip to content

Instantly share code, notes, and snippets.

@oelna
Last active Jun 6, 2016
Embed
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
<?php
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/');
include(FIREWALL_ROOT.'app/index.php');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment