You are here: Output Buffer « PHP Programming Language « IT news, forums, messages
Output Buffer

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?

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация