↧
Answer by MrCode for PHP - Get only certain data from XML, not whole xml file?
SimpleXML can't partially read a document. Even with an XPath filter, the whole document is still parsed behind the scenes.A possible solution is use a cronjob or scheduled task to regularly call a PHP...
View ArticleAnswer by Tobias for PHP - Get only certain data from XML, not whole xml file?
A DOM parser (such as SimpleXML) can only load the entire document.See: Can SimpleXML load only a partial of a XML?but you can iteratethrough your 'who_is_online'.for ($i=0;$i<20;$i++){ echo...
View ArticlePHP - Get only certain data from XML, not whole xml file?
I need to get online users data from xml file, but simplexml_load_file seems slow. File is big because online users are a lot. I am trying to paginate them 20 per page I have...<?php $xml =...
View Article
More Pages to Explore .....