On Wed, 10 Jan 2001, Kristofer Widholm wrote:

> Basically, I'm wondering if there is a way to redirect print and echo 
> output from PHP to a variable instead of directly to a browser or 
> file stream. What I'm trying to do is create code that can generate 
> an HTML page to a variable that I can manipulate and then later store 
> in a database.

http://www.php.net/manual/ref.outcontrol.php

Specifically, ob_get_contents().

Start an output buffer, include your files, get the contents, and
ob_ed_clean.  Ought to do the trick.

Matt


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to