调用方式 xxx.php?user=xxx
保证程序放的当前目录可写文件夹 可写文件
默认存放方式为
./用户名/相册1描述/图片描述-1.图片后缀
$all) die(ok);
$aurl = str_replace(x2f,/,$album[2][$aid]);
$astr = ./.$user./.$album[1][$aid];
$afile = str_replace(http://picasaweb.google.com,,$aurl);
$html = str_replace($,,open(picasaweb.google.com,$afile));
preg_match_all(/summarytype:text,summary:(.*?),contenttype:(.*?),contentsrc:(.*?),link:/s,$html,$pics);
$allpic = count($pics[3]);
for($i=0;$i
$pic = $pics[3][$i];
$typetemp = explode(.,$pic);
$type = $typetemp[(count($typetemp)-1)];
$pname = $pics[1][$i].-.$i...$type;
$temp = explode(ggpht.com,$pic);
$imghost = str_replace(http://,,$temp[0].ggpht.com);
$imgfile = $temp[1];
img($imghost,$imgfile,$astr,$pname);
}
$aid++;
echo ;
?>
下载google相册
http://www.bkjia.com/phpjc/486527.htmlwww.bkjia.comtruehttp://www.bkjia.com/phpjc/486527.htmltecharticle调用方式 xxx.php?user=xxx 保证程序放的当前目录可写文件夹 可写文件 默认存放方式为 ./用户名/相册1描述/图片描述-1.图片后缀 ?php function o...