mrnightowl Posted October 11, 2007 Share Posted October 11, 2007 If anyone could help or have a link to point me in the right direction.. I'm using xpath.class to parse xml node value from a site. This site has a different xml file for each of its users. Which I have 30 of them loaded onto a page for easy viewing. I'm trying to parse viewers count information from each of the 30 different users I have on my site. Problem is, if I try parsing more than 6 or 7 the script freezes. Below is a example of what I'm doing. How can I have it load them in order or something to prevent the script from freezing? <?php include("XPath.class.php");?> User1 Viewers: <?php $xp = new XPath(); $xp->importFromFile("http://www.abc123.com/user1/meta.xml"); $viewers = $xp->getData('//viewers'); echo($viewers); ?> <br> User 2 Viewers: <?php $xp = new XPath(); $xp->importFromFile("http://www.abc123.com/user2/meta.xml"); $viewers = $xp->getData('//viewers'); echo($viewers); ?> The above code does function properly but only up to a certain amount... If I repeat that process it eventually freezes. Any info would be greatly appreciated. thanks in advance! Quote Link to comment https://forums.phpfreaks.com/topic/72714-xpath-multiple-queries/ Share on other sites More sharing options...
wsantos Posted October 11, 2007 Share Posted October 11, 2007 dude...you can try destroying the class after using it. Quote Link to comment https://forums.phpfreaks.com/topic/72714-xpath-multiple-queries/#findComment-366785 Share on other sites More sharing options...
mrnightowl Posted October 11, 2007 Author Share Posted October 11, 2007 Not having any luck with that either.... unless I'm destroying them improperly but not getting any error messages just freezing still Quote Link to comment https://forums.phpfreaks.com/topic/72714-xpath-multiple-queries/#findComment-366821 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.