I'd recommend looking at the output buffering functions. Something like this 
would probably work...

ob_start();
include("links.php");
$file = ob_get_contents();
ob_end_clean();

The result of parsing and executing links.php will be in $file. Do with it 
what you will.

J


Jesse wrote:

> Hello all,
> 
> I'm trying to replace a tag with an include in a template scenario.  For
>   example:
> 
> str_replace("<!--linkTag--!>", include "links.php", $string);
> 
> This obviously doesn't work, but I'm wondering if anybody knows of a
> good way to do this.
> 
> Thanks a bunch,
> 
> Jesse Lawrence


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to