Current location: Hot Scripts Forums » Programming Languages » PHP » Confussed with ob_Start.. Need Help!!


Confussed with ob_Start.. Need Help!!

Reply
  #1 (permalink)  
Old 02-10-04, 12:26 AM
sensitive sensitive is offline
Banned
 
Join Date: Feb 2004
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Question Confussed with ob_Start.. Need Help!!

Hello!! evryone,

I am little bit confuse with the two builtin functions of PHP

ob_start();

and

ob_end_flush();

As i am new to PHP. Kindly is there anyone who could help me in understanding the purpose of these functions?? And is it necessary to add them in every page or not??

Regards,
F.Ahmed.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 02-10-04, 12:51 AM
nd2 nd2 is offline
Wannabe Coder
 
Join Date: Jun 2003
Posts: 128
Thanks: 0
Thanked 0 Times in 0 Posts
both are buffer calls the first
ob_start(); creates a buffer, this gives you more flexablity over the final output as it can be edited that even includes cookies, you can call ob_get_contents() to retrive the buffers content.

ob_end_flush(); Ends the buffer (deletes it) and prints it to screen.
__________________
IonCMS (Coming Soon.)
http://ioncms.com
--
Ncaster (Free php/mysql cms)
http://ncaster.cjb.net
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump


All times are GMT -5. The time now is 01:05 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.