This was originally page on this site, but I’ve since decided to just make it a post. Here goes:
This is a class for PHP5 that allows you to load up a FOAF (friend of a friend) file from livejournal.com and display information from that file.
require( "xml-foaf-class.php" ); $foaf = new Foaf; $foaf->do_processing( "filename" ); echo $foaf->nick;</pre>
Download the source here: xml-foaf-1.0.zip