[php] Re: [nycphp-talk] object buffering
Willliam Klein
willie at pdfsystems.com
Wed Jul 23 16:12:59 EDT 2003
Thanks
Sorry about the op typos.
Yes that works great using the include. I've been staring at this for hours
and the answer is so simple.
Thank to all
willie
> -----Original Message-----
> From: talk-bounces at lists.nyphp.org
> [mailto:talk-bounces at lists.nyphp.org]On Behalf Of Chris Shiflett
> Sent: Wednesday, July 23, 2003 4:03 PM
> To: NYPHP Talk
> Subject: [php] Re: [nycphp-talk] object buffering
>
>
> --- Willliam Klein <willie at pdfsystems.com> wrote:
> > Is there a way to store the entire output os a php page to be
> > emailed later?
>
> Sure.
>
> > I was thinkingsomething like:
> >
> > op_start("showOPA.php");
> > $blah=op_get_content();
> > echo $blah;
>
> The functions are ob_start() and ob_get_content(). Note the
> ob (for output
> buffering) rather than op.
>
> Also, to start buffering, just do this:
>
> ob_start();
>
> I'm guessing you just meant to include showOPA.php or
> something. Otherwise,
> your example will work up to the point where the output is
> stored in $blah. You
> can then write that to a file, email it, or whatever.
>
> Hope that helps.
>
> Chris
>
> =====
> Become a better Web developer with the HTTP Developer's Handbook
> http://httphandbook.org/
> _______________________________________________
> talk mailing list
> talk at lists.nyphp.org
> http://lists.nyphp.org/mailman/listinfo/talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20030723/4a46f3b4/attachment.html>
More information about the talk
mailing list