Zend framework Zend_Service_Yahoo显示发送请求错误。状态代码:404
我需要你的帮助。 我在使用Zend_Service_Yahoo时遇到了一个问题。 我正在尝试使用Zend_Service_Yahoo。但它表明 “发送请求时出错。状态代码:404”Zend framework Zend_Service_Yahoo显示发送请求错误。状态代码:404,zend-framework,Zend Framework,我需要你的帮助。 我在使用Zend_Service_Yahoo时遇到了一个问题。 我正在尝试使用Zend_Service_Yahoo。但它表明 “发送请求时出错。状态代码:404” $yahoo=new Zend_Service_yahoo(“雅虎应用程序ID”); 试一试{ $results=$yahoo->imageSearch('PHP'); foreach($results作为$result){ echo$result->Title.“”; } }捕获(例外$e){ echo$e->ge
$yahoo=new Zend_Service_yahoo(“雅虎应用程序ID”);
试一试{
$results=$yahoo->imageSearch('PHP');
foreach($results作为$result){
echo$result->Title.“
”;
}
}捕获(例外$e){
echo$e->getMessage();
}
参考:
提前感谢这是因为imagesearch 我们将在2011年4月关闭此服务。有关更多详细信息,请参阅弃用服务博客文章
$yahoo = new Zend_Service_Yahoo("YAHOO_APPLICATION_ID");
try{
$results = $yahoo->imageSearch('PHP');
foreach ($results as $result) {
echo $result->Title . '<br />';
}
}catch(Exception $e){
echo $e->getMessage();
}