Post by herischarles » Wed Dec 09, 2015 5:32 pm

What does ob_start do in php?

Newbie

Posts

Joined
Wed Nov 04, 2015 1:54 pm
Location - canada

Expert Member

Posts

Joined
Fri May 14, 2010 2:36 am

Post by Anoopg » Mon Jan 04, 2016 5:37 pm

Normally php sends all text not included in <?php ... ?>, all echos, all prints to the output. Which is send to the err... output: http server (which sends it to a client), console etc.

After ob_start this output is saved in output buffer, so you can later decide what to do with it.

It doesn't affect db connection. It deals with text (mostly) produced by php.

Website Design & Web Development Company Zeemo


User avatar
Newbie

Posts

Joined
Thu Nov 21, 2013 1:20 pm
Location - Melbourne
Who is online

Users browsing this forum: No registered users and 2 guests