首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用phpflickr时出现问题

使用phpflickr时出现问题
EN

Stack Overflow用户
提问于 2009-12-01 22:52:06
回答 1查看 822关注 0票数 0

我在Windows Vista和WAMP2.0上使用phpFlickr (最新稳定版本):

我有这些:

代码语言:javascript
复制
Strict Standards: Assigning the return value of new by reference is deprecated in .../phpFlickr.php on line 91

Strict Standards: Assigning the return value of new by reference is deprecated in .....phpFlickr.php on line 330

Strict Standards: Assigning the return value of new by reference is deprecated in ...phpFlickr.php on line 399

Strict Standards: Assigning the return value of new by reference is deprecated in phpFlickr.php on line 468

Strict Standards: Assigning the return value of new by reference is deprecated in HTTP/Request.php on line 341

Strict Standards: Assigning the return value of new by reference is deprecated in ../Request.php on line 659

Strict Standards: Assigning the return value of new by reference is deprecated in ....quest.php on line 672

Strict Standards: Assigning the return value of new by reference is deprecated in ...../Request.php on line 717

Strict Standards: Assigning the return value of new by reference is deprecated in ....PEAR.php on line 569

Strict Standards: Assigning the return value of new by reference is deprecated in .....PEAR.php on line 572

因为我正在使用symfony ;,所以我不想在GUi上显示这个警告消息,并且我想将我的请求重定向到一个页面I have defined.THe警告消息显示在方法sync_upload之后。

这是我的代码:

代码语言:javascript
复制
require_once("../Flickr/phpFlickr.php");
//authentication
        $f = new phpFlickr("key","secret");
        if($f!=null) echo  "connexion réussie</br>";
        $f->setToken("token");

        $f->enableCache("fs", "../Flickr/cache");

        $myPerms =$f->auth("write");
        echo  "permission définie".$myPerms."</br>";
//upload
        $tags="test1,test2";
        $upload_photo_id=$f->sync_upload($filePhotoName,"www.koutchoumi.com",null,$tags);
        echo $upload_photo_id."_test";
        $photo=$f->photos_getInfo($upload_photo_id);
        print_r($photo) ;
        $url=$f->buildPhotoURL($photo);
        echo "</br>".$url."</br>"  ;
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2009-12-01 22:58:19

看起来您使用的是PHP5.3

只需更改您的error_reporting设置,就不会显示E_DEPRECATED类型的错误。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/1826687

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档