![]() |
"Notice" in my lib, xml trouble - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: "Notice" in my lib, xml trouble (/showthread.php?tid=6041) |
"Notice" in my lib, xml trouble - El Forum - 02-13-2008 [eluser]Unknown[/eluser] sorry for my bad(very bad) english i have controller Code: <?php Code: <?php if (!defined('BASEPATH')) exit('No direct script access allowed'); whis work! but on every line whith "$xmlpath->..." i have per line for two similar errors Quote:A PHP Error was encountered what is wrong? "Notice" in my lib, xml trouble - El Forum - 02-13-2008 [eluser]avinashv[/eluser] Going from your code, you are trying to access the XML feed at "http://weather.co.ua/xml/feed.xml?version=1.1&city;=1310&dayf=5" If you go there, you get an error "XML001 Main input params not found". The reason the XML parser is throwing you an error is because the DOM tree doesn't exist. Fix your feed link and that should sort problems out. "Notice" in my lib, xml trouble - El Forum - 02-13-2008 [eluser]Seppo[/eluser] The problem I'm getting is that the xml only has 20 days, so after that the xml is empty =) Try replacing Code: for($i=0;$i<24;$i++) { for Code: $times = count($xml->forecast->day); @avinashv: I think it is city= and not city;=... probably a forum problem "Notice" in my lib, xml trouble - El Forum - 02-13-2008 [eluser]Unknown[/eluser] big thanks Seppo, it's work ^^ |