Comments on: ‘tweetFromFile’ PHP Class https://j11y.io/snippets/tweetfromfile-php-class/ Sun, 22 Mar 2015 15:39:22 +0000 hourly 1 https://wordpress.org/?v=5.0.13 By: kyio https://j11y.io/snippets/tweetfromfile-php-class/#comment-733 Mon, 15 Jun 2009 16:33:17 +0000 https://j11y.io/?p=612#comment-733 this works perfect to me! now i can publish emails that i dont want to read myself to twitter 🙂

]]>
By: eugene https://j11y.io/snippets/tweetfromfile-php-class/#comment-732 Tue, 24 Mar 2009 15:40:53 +0000 https://j11y.io/?p=612#comment-732 chron job for sure
but if you feel like testing it in a browser window you can always use PHP’s usleep http://ca2.php.net/usleep

]]>
By: Chris Gedrim https://j11y.io/snippets/tweetfromfile-php-class/#comment-731 Tue, 03 Mar 2009 10:13:16 +0000 https://j11y.io/?p=612#comment-731 @Robert That would indeed work, but your crontab entry could be tidied up a little:

*/10 * * * * wget --spider -q "http://www.newsblur.com/reader/refresh_all_feeds"

Personally, and for maximum functionality I would write a bash script to use php5-cli to execute the php file, and send the outputs to log files. The script could still be used by web-side apps in the normal manner.

]]>
By: Robert Samuel Clay https://j11y.io/snippets/tweetfromfile-php-class/#comment-730 Mon, 02 Mar 2009 22:08:25 +0000 https://j11y.io/?p=612#comment-730 No need to use Apache. If you want to call a page at a fixed interval, use ‘crontab -e’ to edit your crontab adn add a line similar to this:

0,10,20,30,40,50 * * * * wget --spider -q "http://www.newsblur.com/reader/refresh_all_feeds"

This particular crontab entry works every 10 minutes (on the X:00, X:10, X:20, etc). You should have wget, but if not, it’s easy to install.

]]>
By: Jack F https://j11y.io/snippets/tweetfromfile-php-class/#comment-729 Mon, 02 Mar 2009 21:51:23 +0000 https://j11y.io/?p=612#comment-729 Wow pretty awesome! Thanks James – even if I can hardily understand the code!

Jack.

]]>