资 源 简 介
[Brief:]
php-curl , no pear!
this project upload photoes to flickr and get the return url , thus you can use flickr as your blog"s image hosting server! you can upload one image a time or tens of images once!
require\_once("./curlflickr.php");//chage to your directory
session\_start();//we will use session , so be sure you have this rights
$fk=new curlflickr;
$fk->api\_key="dddddddddddddddddd";//set your api
$fk->secret="296ddddddddddddd5b5b";//set your secret code
$fk->auth("write",TRUE);//you can just use $fk->auth(); is fine
//multiple upload
$images[.md](.md)="./1.jpg";
> $images[.md](.md)="./2.jpg";
> $images[.md](.md)="./3.jpg";
> $urls=$fk->umulty($images,"large");////all,array,large,small,square,thumbnail,medium is all ok
> print\_r($urls);
> foreach($urls as $url){
> print "";
> > }
$fk=NULL;
?>
if there is any problem , just leave me a