How My Links Page Works
Today I got an email enquiring about my automatically-generated links page. To turn an OPML file into bulleted links, add the following to a PHP file:
<?php
include("opml_class.php");
$file = [path to your OPML file];
$blogroll = new Blogroll($file);
$output = $blogroll->html;
echo $output;
?>
I use a modified version of this PHP class.
How do I get that OPML file? I have a crontab that does: wget -q -O [path to OPML file] http://www.bloglines.com/export?id=josephgrossberg every day.
update Rasheq Rahman has a version that's less bloglines-specific, and a more easily-customized display.
OMG. At least do this:
wget -q -O /path/to/OPML/file http://www.bloglines.com/export?id=josephgrossberg
Yow! :-)
Posted by: Dossy on February 23, 2005 11:19 AM | permalinkJoe: Thanks for providing the php mojo to turn OPML -> HTML. I've successfully followed your instructions and you can see the results at: http://wait4it.blogspot.com/
Thanks again!
Posted by: Vince on February 23, 2005 11:27 AM | permalinkAh, didn't know about -O.
Let me guess ... you're one of those guys who never does a:
cat filename | ...
Posted by: Joe Grossberg on February 23, 2005 12:03 PM | permalinkNo more comments! Either someone has violated Godwin's Law, I'm tired of the discussion or, most likely, the ten-week window has closed. You can, however, contact me through email.