how to clear the buffer in php!!

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
joyce
Forum Newbie
Posts: 6
Joined: Fri Apr 16, 2004 1:02 am

how to clear the buffer in php!!

Post 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.*-*
User avatar
mudkicker
Forum Contributor
Posts: 479
Joined: Wed Jul 09, 2003 6:11 pm
Location: Istanbul, TR
Contact:

Post by mudkicker »

i think ob_clean() is what u lookin for ..
malcolmboston
DevNet Resident
Posts: 1826
Joined: Tue Nov 18, 2003 1:09 pm
Location: Middlesbrough, UK

Post by malcolmboston »

ob_flush() does it "but" sends all the output generated so far by the script to the browser
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Post 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.
Post Reply