php阅读器谷歌新

php阅读器谷歌新,php,rss,Php,Rss,我在我的网站上安装了一个php reader for Google News来阅读前五篇文章,但是(1)图片不显示,(2)我只想要主标题的第一篇源文章 $news=simplexml\u加载\u文件('https://news.google.com/news?q=guadeloupe&output=rss&hl=fr&ned=fr&num=5'); $feeds=array(); $i=0; foreach($news->channel->item as$item) { $parts=expl

我在我的网站上安装了一个php reader for Google News来阅读前五篇文章,但是(1)图片不显示,(2)我只想要主标题的第一篇源文章

$news=simplexml\u加载\u文件('https://news.google.com/news?q=guadeloupe&output=rss&hl=fr&ned=fr&num=5');
$feeds=array();
$i=0;
foreach($news->channel->item as$item)
{
$parts=explode('',$RSS_part2);

$RSS\u part2=str\u replace('riggsfully,num=1只列出一条新闻,我想要5条新闻;)

我找到了解决方案,并给出了php google新闻阅读器的具体查询代码:


我建议从阅读您安装的阅读器的文档开始。我猜,如果您将其更改为
num=1,我的第一个更改可能是
num=5
,看看会发生什么