include('xml.php');
$xml = file_get_contents("http://www.flickr.com/services/rest/?method=flickr.photos.search&api_key=2f776e3a73b642884ac0fda6b068c6c2&user_id=13076967@N02&per_page=70");
$data = XML_unserialize($xml);
$photo = $data['rsp']['photos']['photo'];
$num = count($photo)/2;
for ($i = 0;$i<$num ; $i++) {
$id = $photo[$i.' attr']['id'];
$server=$photo[$i.' attr']['server'];
$secret=$photo[$i.' attr']['secret'];
$title = $photo[$i.' attr']['title'];
if($id != "") { // $idが空の場合は処理を中止
?>
-
}
}?>
ハンドメイド雑貨 チェム ホームへ