Quantcast
Channel: PHP RSS feed reader efficiency - Stack Overflow
Browsing latest articles
Browse All 2 View Live

Answer by NDRange for PHP RSS feed reader efficiency

Using SimpleXML, as you say, you load all the file in memory and then it's parsed. Then you iterate over the loaded elements in memory. Using a SAX-like parser like "XML Parser", will allow you don't...

View Article



PHP RSS feed reader efficiency

I'm reading data from an XML feed as follows: $data=file_get_contents("mydata.rss"); $data=simplexml_load_string($data); foreach($data->channel->item as $item){ $articles[] = array(...

View Article
Browsing latest articles
Browse All 2 View Live




Latest Images