Codeasearch.com - Search your code with us Login | Register | Contact us
  Forums > Php > need a good explanation on ob_start with example
najeebputhiyallam
Posted on Jul 4, 2009
Join Date: March 2009
Location: India ( Bangalore )
Posts: 12
 
need a good explanation on ob_start with example  

hi guys, i am confused abt ob_start(); i tried the docs from php and other website.. but still its not clear for me...

plz anyone try to explain me in a good manner.. along with an example...

kevin
Posted on Jul 6, 2009
Join Date: May 2008
Location: India ( chennai )
Posts: 4978
 
RE : need a good explanation on ob_start with example  

ob_start() output buffer, which allows you to send headers. You have to place ob_start() function beginning of the line no newline or space.

<?php
ob_start();
echo "Welcome";
header("Location:1.html");
?>

 Hot Discussion
Go Tech launches Android tablet for Rs 3,999...
Sony targets retailers with quick sales pitches and rew...
Share and discover new activities with Google Schemer...
Samsung gets 9 mn preorders for Galaxy S3: Report...
Google revamps search engine to think like a person...
 
 Discussion Topics
IT News
Php
Javascript
Technology Updates
Asp.Net
MySql
Ajax
Html
Fedora
Software Testing
Asp
Java
General
Flash
Ruby on Rails