buffering code with db connection

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Raj

    buffering code with db connection

    Hi,

    I have a db connect script running in an include file with buffering. Does
    anyone know if there are restrictions for this? It seems to work with a
    smaller amount of code to be buffered. Is there some sort of limit for
    buffering (i.e using ob_start () ... ob_end_flush()) . The thing is,
    everything else seems to work. Why does the db connect script not work?

    Thanks,

    Raj

  • Janwillem Borleffs

    #2
    Re: buffering code with db connection

    Raj wrote:[color=blue]
    > I have a db connect script running in an include file with buffering.
    > Does anyone know if there are restrictions for this? It seems to work
    > with a smaller amount of code to be buffered. Is there some sort of
    > limit for buffering (i.e using ob_start () ... ob_end_flush()) . The
    > thing is, everything else seems to work. Why does the db connect
    > script not work?
    >[/color]

    When your code is structured like:

    ob_start();
    // DB and related stuff
    ob_end_flush();

    I see no reason why it shouldn't work. Check your error level and produced
    messages (if any) and post a couple of lines of relevant code if you need
    more help.


    JW



    Comment

    Working...