|
Posted by paladin.rithe@gmail.com on 10/14/06 03:56
My last question was about Sessions, and I'm still running into the
same issue, but with a different class now (basicly it says that the
class was not loaded), but I think I've narrowed it down to the way I'm
using Sessions. My question now is about Output Buffers. I basicly
made my own buffer and stored the information in a Session variable,
and I think that is causing my problem.
The reason I'm doing it this way, and not just a simple ob_start, etc,
is that I want to be able to control the output. For instance, if I
find that I want to add a menu item, but I'm at the end of my script,
then I have a problem. But the way I was working it was that I would
output everything at the end of the script. Plus, this gives me the
advantage of being able to sort the menu the way I want, so I could
output the one at the bottom of my menu (on a vertical one) first, and
then one at the top if that's the way the script happened to run.
What would be the best way to do this? Like I said, I was using a
Session variable, but I think that is causing a number of my problems.
Should I just go with a global variable? It's possible I need to
rethink how I was working stuff, as currently it redirects to a
game.php which does the output. I did this to help discourage hitting
back (as that would be extremely undesirable). Is there a better way
to handle that as well?
[Back to original message]
|