Ken2k7 Posted May 11, 2009 Share Posted May 11, 2009 After: $myFile = "../nodoubleiw.txt"; $nodoubleiw = file($myFile); Put: var_dump($nodoubleiw); Link to comment https://forums.phpfreaks.com/topic/157648-loop-problem/page/2/#findComment-831390 Share on other sites More sharing options...
hchsk Posted May 11, 2009 Author Share Posted May 11, 2009 oh wow, silly mistake, somewhere along i had added the ../ that i should not have. thank you for pointing that out. but now it outputs 333333333333? Link to comment https://forums.phpfreaks.com/topic/157648-loop-problem/page/2/#findComment-831394 Share on other sites More sharing options...
Ken2k7 Posted May 11, 2009 Share Posted May 11, 2009 I asked if your file path is correct. --__-- And what's that number represent? Link to comment https://forums.phpfreaks.com/topic/157648-loop-problem/page/2/#findComment-831397 Share on other sites More sharing options...
hchsk Posted May 11, 2009 Author Share Posted May 11, 2009 i know you did! im so sorry. and i fixed the 33. . . by switching the last to < as it should be rather than <= but now i get 22. . . which makes no sense. (intval($inactive[days]) == 0) is false! it ==2 Link to comment https://forums.phpfreaks.com/topic/157648-loop-problem/page/2/#findComment-831480 Share on other sites More sharing options...
Ken2k7 Posted May 11, 2009 Share Posted May 11, 2009 var_dump($inactive); Same drill as last time. Link to comment https://forums.phpfreaks.com/topic/157648-loop-problem/page/2/#findComment-831536 Share on other sites More sharing options...
hchsk Posted May 12, 2009 Author Share Posted May 12, 2009 ive discovered a new and much more pressing problem that perhaps you can help me with. i have a file updates.php, which is an rss page generated by php. Within updates.php, i need to add an item that contains a variable gathered by inactive() which comes from an included page inactivity.php. The problem is that the inactive() function needs to search the items of the rss generated by updates.php, and it uses the last pubDate of an item in a chosen category. as is, this creates a loop, that ruins not updates.php, which seems to independently time out and ignore that section of the script, but it ruins another page on my site, which creates individual, smaller feeds based off of the items in a chosen category of updates.php Link to comment https://forums.phpfreaks.com/topic/157648-loop-problem/page/2/#findComment-832092 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.