我在Windows Vista和WAMP2.0上使用phpFlickr (最新稳定版本):
我有这些:
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之后。
这是我的代码:
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>" ;发布于 2009-12-01 22:58:19
看起来您使用的是PHP5.3
只需更改您的error_reporting设置,就不会显示E_DEPRECATED类型的错误。
https://stackoverflow.com/questions/1826687
复制相似问题