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 ArticlePHP 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
More Pages to Explore .....