【发布时间】:2014-03-17 16:18:51
【问题描述】:
我使用此代码从我的帐户 picasa 中获取所有图像,但没有结果:
$content = file_get_contents("https://picasaweb.google.com/data/feed/base/user/107745136468823194427?alt=rss&kind=photo&hl=fr&imgmax=1600");
$x = new SimpleXmlElement($content);
foreach($x->channel->item as $entry => $value){
$title = $value->title;
$image = $value->enclosure->attributes()->url;
$urlimg = $image[0];
echo '<img src="'.$urlimg.'>"';
}
什么问题?谢谢
【问题讨论】:
-
请注意,您需要 cookie 才能访问所有照片,包括非公开照片(因为您没有设置参数
access=public)。