xml - PHP - How to read RSS feeds with limit ( Pagination ) -


i know there lot of ways read rss in php like

$rss = simplexml_load_file('http://rss.cnn.com/rss/edition.rss'); var_dump($rss); 

and when searching paginate feeds , limit them offset pagination example found more 1 way

all of them paginate feeds after getting of them form rss provider

my question

"is there way read rss feeds in paging way twitter or facebook apis?"

thank

there's no generic way work providers - give in response requests them. can/will paginate, others won't - you've discovered; won't - they'll give rss feed is.

if you're trying create generic module, need able handle paginated feeds if gets one. either need keep white-list of providers give paginated feeds or learn recognise paginated feeds when receives them - , handle them appropriately.

there lots of open source rss readers/aggregators around who's source code @ examples - http://tt-rss.org/redmine/projects/tt-rss/wiki popular , written in php - , see how it?


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -