Skip to content

Commit

Permalink
twitter feed cron
Browse files Browse the repository at this point in the history
  • Loading branch information
voitto committed Jul 24, 2009
1 parent 7f1dee4 commit 8af3b4c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README
Expand Up @@ -235,7 +235,7 @@ OTHER DOCUMENTATION
here are the steps to set up the automatic twitter feed:
1. set up your OMB install as a Twitter OAuth app
2. authenticate as the Twitter user whose friends you want to import automatically
3. set up a cron job to run "/usr/bin/php /your/omb/web/folder/cron.php" every five or ten minutes

3. set up a cron job to run db/library/remy-tweed/cron.php -- this cron job runs once a minute:
0-59 * * * * /usr/bin/php /home/webuser/public_html/db/library/remy-tweed/cron.php 2>&1


4 changes: 3 additions & 1 deletion db/library/remy-tweed/cron.php
Expand Up @@ -30,9 +30,10 @@

$path = pathinfo(__FILE__, PATHINFO_DIRNAME);


$ombroot = substr($path,0,-21);

chdir($ombroot);

include_once($path . '/lib/spyc.php');
include_once( $path . '/lib/xml2array.php');
if( !function_exists('json_decode') )
Expand Down Expand Up @@ -95,6 +96,7 @@
} else {
$env = array('app_folder'=>'app');
}
$env = array('app_folder'=>$ombroot.'app');
if (is_dir( $env['app_folder'] )) {
$app = $env['app_folder'] . DIRECTORY_SEPARATOR;
$appdir = $app;
Expand Down

0 comments on commit 8af3b4c

Please sign in to comment.