Page 1 of 1

how to clear the buffer in php!!

Posted: Fri Apr 16, 2004 1:36 am
by joyce
hi, i want to ask that how to clear the buffer in php.
When i reflesh the program, then they will add another guestname inside.
I thought when i reflesh the program, the program will go back to the same guestbook.
But my program when reflesh the program, they will add a new guestname. The guestname is same like the previous want.
Can i know how to slove the problem?

thankx.*-*

Posted: Fri Apr 16, 2004 4:03 am
by mudkicker
i think ob_clean() is what u lookin for ..

Posted: Fri Apr 16, 2004 6:47 am
by malcolmboston
ob_flush() does it "but" sends all the output generated so far by the script to the browser

Posted: Wed May 12, 2004 2:21 pm
by patrikG
Could you show us your code?

From how I understand you, you are looking for [php_man]unset[/php_man], which "clears" the value of a variable.