Bluehost.com Web Hosting $6.95

HTML output buffering

This is a discussion on HTML output buffering within the PHP General forums, part of the PHP Programming Forums category; Good afternoon! Is there a simple way to have PHP buffer all HTML output via echo/print until the program ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-16-2003
Robin Kopetzky
 
Posts: n/a
Default HTML output buffering

Good afternoon!

Is there a simple way to have PHP buffer all HTML output via echo/print
until the program flushes the output buffer??

Robin 'Sparky' Kopetzky
Black Mesa Computers/Internet Service
Grants, NM 87020
Reply With Quote
  #2 (permalink)  
Old 10-16-2003
Chris Shiflett
 
Posts: n/a
Default Re: [PHP] HTML output buffering

--- Robin Kopetzky <sparkyk@blackmesa-isp.net> wrote:
> Is there a simple way to have PHP buffer all HTML output via
> echo/print until the program flushes the output buffer??


Yes, output buffering:

http://www.php.net/ob_start

Hope that helps.

Chris

=====
My Blog
http://shiflett.org/
HTTP Developer's Handbook
http://httphandbook.org/
RAMP Training Courses
http://www.nyphp.org/ramp
Reply With Quote
  #3 (permalink)  
Old 10-16-2003
Marek Kilimajer
 
Posts: n/a
Default Re: [PHP] HTML output buffering

Yes! And surprisingly it is called output buffering. Search the manual
before you post.

Robin Kopetzky wrote:
> Good afternoon!
>
> Is there a simple way to have PHP buffer all HTML output via echo/print
> until the program flushes the output buffer??
>
> Robin 'Sparky' Kopetzky
> Black Mesa Computers/Internet Service
> Grants, NM 87020
>

Reply With Quote
  #4 (permalink)  
Old 10-16-2003
Cpt John W. Holmes
 
Posts: n/a
Default Re: [PHP] HTML output buffering

From: "Robin Kopetzky" <sparkyk@blackmesa-isp.net>

> Is there a simple way to have PHP buffer all HTML output via echo/print
> until the program flushes the output buffer??


You can buffer the output yourself using the output buffering functions. Is
that what you're looking for?

More info: http://us2.php.net/manual/en/ref.outcontrol.php

---John Holmes...
Reply With Quote
  #5 (permalink)  
Old 10-16-2003
Robin Kopetzky
 
Posts: n/a
Default RE: [PHP] HTML output buffering

Thank you for responding - Doh! I didn't look before leaping "Oh, boy..."

Sparky
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 03:51 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0