You are here: Re: XML RSS reader with BBC Website.. « PHP Programming Language « IT news, forums, messages
Re: XML RSS reader with BBC Website..

Posted by Rik on 08/15/07 15:13

On Wed, 15 Aug 2007 16:57:21 +0200, junkmate <junkmate@gmail.com> wrote:=


> I have made an RSS reader and am testing on the BBC website, and I use=

> this code to grab the contents of the XML file, however when I look at=

> the contents grabbed by my function, and the HTML source of the bbc
> website XML, they are different... how is that even possible?
>
> Anyone have an XML parser that they could test this on please? Heres a=

> sample link and my code:
> http://newsrss.bbc.co.uk/rss/sportonline_uk_edition/football/rss.xml
>
>
> $rss_name =3D "filename.xml";
>
> $ch =3D curl_init($feed);
> $fp =3D fopen($rss_name, "w");
>
> curl_setopt($ch, CURLOPT_FILE, $fp);
> curl_setopt($ch, CURLOPT_HEADER, 0);
>
> curl_exec($ch);
> curl_close($ch);
> fclose($fp);
>

Viewing the feed source & the file from CURL, the only difference I see =
is =

(understandably) <lastBuildDate />. What do you see and what do you expe=
ct?


-- =

Rik Wasmus

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация