Last active
June 6, 2016 12:04
-
-
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)
This file contains 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
*/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 |
This file contains 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 | |
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