Try this: (see http://www.php.net/manual/en/ref.outcontrol.php for more
info)

> > My problem is.. that when I do something like
> >
> > ---------------------------------------------
> > $content = show_source("/path/to/file");
> >  // or
> > $content = "Blah.. blah.. ".include("/some/file").".. some
> > more blah..";
> > ---------------------------------------------
> >
> > It includes the files (or executes the code that is assigned
> > to the variable), however it all appears OUTSIDE the
> > template.

ob_start(); // start buffer
eval("?>".include ("/path/to/file"));
$file_content = ob_get_contents();
ob_end_clean(); // delete the buffer

$content = "Blah.. blah.. ".$file_content.".. some more blah..";

Hope this helps...




-- 
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