I revamped my homepage and wanted to include the latest pictures I uploaded to ipernity. This is quite easy done in php, as IP provides a feed of your latest pictures as a php-array (see the feed help page)

The code I ended up with is as follows:

<?php
include 'www.ipernity.com/feed/doc?user_id=nils&only=photo&format=php';

$size="t";
$number_of_imgs=14;
$linebreakafter=7;

print("<div class=\"ipernity\">");
for($i=0;$i<$number_of_imgs;$i++)
{
        printf("<a href=\"%s\">\n",$feed["items"][$i]["link"]);
        printf("\t<img src=\"%s\" width=\"%s\" height=\"%s\" alt=\"%s\" />\n",
                $feed["items"][$i]["thumbs"][$size]["url"],
                $feed["items"][$i]["thumbs"][$size]["width"],
                $feed["items"][$i]["thumbs"][$size]["height"],
                $feed["items"][$i]["title"]);
        print("</a>\n");
        if( ($i+1)%$linebreakafter == 0 && $i > 0)
                print("<br />\n");
}
print("</div>");
?>