Skip to content

Instantly share code, notes, and snippets.

@oelna
Last active June 6, 2016 12:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oelna/62c89d765f24cc6bb33ee42a85afd9cb to your computer and use it in GitHub Desktop.
Save oelna/62c89d765f24cc6bb33ee42a85afd9cb to your computer and use it in GitHub Desktop.
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