LiveJournal images XML feed :: PHP source code for this page
Number of images: echo $limit; ?> - Limit to: 25 :: 50 :: 100 :: 250
function is_img($recent_image) { return $recent_image['tag'] == 'RECENT-IMAGE'; } $handle = fopen("http://www.livejournal.com/stats/latest-img.bml", "r"); $ljxml = ""; while (!feof($handle)) { $ljxml .= fgets($handle); } fclose($handle); $p = xml_parser_create(); xml_parse_into_struct($p, $ljxml, $vals); xml_parser_free($p); $imgs = array_filter($vals, "is_img"); if ($limit < 250) { $imgs = array_slice($imgs, 0, $limit); } $num_imgs = sizeof($imgs); $ct = 1; foreach ($imgs as $recent_image) { echo "
LJ post URL ::\n";
echo "Image URL ::\n";
echo "
\n
Number of images: echo $limit; ?> - Limit to: 25 :: 50 :: 100 :: 250