php bug(in a nuke)
Posted: Tue Feb 28, 2006 12:02 pm
unfortunately my scripts all run in a nuke(though i hate nuke, its not worth the effort of redoing the whole thing - especialy since I have neglected to really learn database management as of yet =p)
anyway, if your familiar with nuke, you know that left blocks are always included, and right blocks are included based on a variable in the page script...
so heres the thing... I am reading several xml feeds from servers and cacheing them into text files for most reloads(ie if 5 mintues has passed, the data refreshes itself from the xml otherwise it just explodes some text files - the feeds are only updated about every 5-10 minutes anyhow, so the extra second of delay reading them every refresh is annoying). the script I included to read the xml's has produced a wierd side effect, whenever the xml has to be refreshed... it nullifies the existence of the right blocks. All other refreshes are fine, so the problem has to lie with something when it parses. But though I've guessed that much, I am completely unaware of how something like that can happen when all the tables and layout are forming fine( nukes open and close tables for each block, and if somethings wrong, youll see it fast)
if this rings any bells for anyone, let me know, of if looking at the parser bits might tip you off, I can post those...
hehe they are a bit messy though, I only know php through the need to do it on site, basicaly a hack and slash approach to php creation... when I want to do something, I try and figure out how, and give it a go. In this case I think i destroyed and created this code several times, because parsers are kinda iffy when trying to stremaline code and reuse bits(or at least so I read about classes w/ parsers, so I shyed away from trying that.)
anyway, while looking, for a couple other errors, i ended up scrapping and working alot of functions and script, or to put it another way, I aint gonna post my ugly php unless someone thinks it might help them help me lol =p
anyway, if your familiar with nuke, you know that left blocks are always included, and right blocks are included based on a variable in the page script...
so heres the thing... I am reading several xml feeds from servers and cacheing them into text files for most reloads(ie if 5 mintues has passed, the data refreshes itself from the xml otherwise it just explodes some text files - the feeds are only updated about every 5-10 minutes anyhow, so the extra second of delay reading them every refresh is annoying). the script I included to read the xml's has produced a wierd side effect, whenever the xml has to be refreshed... it nullifies the existence of the right blocks. All other refreshes are fine, so the problem has to lie with something when it parses. But though I've guessed that much, I am completely unaware of how something like that can happen when all the tables and layout are forming fine( nukes open and close tables for each block, and if somethings wrong, youll see it fast)
if this rings any bells for anyone, let me know, of if looking at the parser bits might tip you off, I can post those...
hehe they are a bit messy though, I only know php through the need to do it on site, basicaly a hack and slash approach to php creation... when I want to do something, I try and figure out how, and give it a go. In this case I think i destroyed and created this code several times, because parsers are kinda iffy when trying to stremaline code and reuse bits(or at least so I read about classes w/ parsers, so I shyed away from trying that.)
anyway, while looking, for a couple other errors, i ended up scrapping and working alot of functions and script, or to put it another way, I aint gonna post my ugly php unless someone thinks it might help them help me lol =p