3rd April, 2008
vs.tweet v1.1
Thursday, 10:03 am in CodeGirl
Well, because
1863 asked for it, here’s the script I use to crosspost Twitter to my journals. The set-up is a bit tricky, but only because it requires a cron job and I think most people probably don’t touch those. But they’re not scary, honest.
Anyway, until I get a proper page for it set up at sk.ODE, here’s the install instructions.
- Download vs.tweet.
- Edit the config values in
twitter.php. Take special note of line 21 and line 28. - Upload everything to your server somewhere.
- Set up the following cron job (your cPanel should have an option to help you with this; if you don’t have access to a cPanel, it’s likely your host does):
0 * * * * php -q /path/to/your/twitter.php/passwordMake sure to change the path and set ‘password’ to the value you set on line 21 oftwitter.php. - Note that the update on the cron and
$MINSintwitter.phpmust agree. By default it’s set to update once every hour; you can make this shorter or longer if you know what you’re doing. - Make some tweets.
- Wait until your update time.
- Enjoy!
Update: v1.1.1 (8th April, ‘08)
- Fixed the incorrect truncation of tweets when removing the username.
- Apparently you can’t run CLI
phpwith query string arguments. Let’s try this instead.
- « Previous
- Next »