what's wrong with this method? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: what's wrong with this method? (/showthread.php?tid=31454) |
what's wrong with this method? - El Forum - 06-19-2010 [eluser]7amza[/eluser] Hello , what's wrong with this method : Code: /*database : the problem that when i add 5 or 6 link the method don't grab all the feed just one or two from one category and it ignore all other category . i use rssparser . what's wrong with this method? - El Forum - 06-20-2010 [eluser]pickupman[/eluser] Could it be that your script is timing out? I see you have set a long time, but if this is not on your server, or you are unable to change the setting in php.ini. If you are unable to set it in php.ini, it may not matter what value you plugin to your script. How about setting up a timer in your loop to see how long it is executing until it stops? what's wrong with this method? - El Forum - 06-20-2010 [eluser]InsiteFX[/eluser] Maybe because your loading the RSS library multiple times in your foreach loop? InsiteFX what's wrong with this method? - El Forum - 06-21-2010 [eluser]7amza[/eluser] pickupman , the problem is not from the timer ..i test in localhost and nothing was change. InsiteFX its not the problem of loading , the problem is that i have to unset the variables of the rss library i think because it load the sam rss in every loop ?? what's wrong with this method? - El Forum - 06-21-2010 [eluser]pickupman[/eluser] Since, it's hard to know what's going on the rest of the code, the only thing I could suggest is start dumping vars, and see if you are always getting the results from your DB. What happens when you don't use your rss library? Have you tried the Simplepie library? RSS should be pretty straightforward. Make sure you are first fetching your data from the feeds first, and keep adding stuff back into parsing until you get your results. |