Re: can't use include file with php tags
- From: Mike Collins <webspammer_@xxxxxxxxxxxx>
- Date: Sun, 27 Aug 2006 11:44:01 GMT
On Sat, 26 Aug 2006 23:50:05 -0700, "Johnny"
<removethis.huuanito@xxxxxxxxxxx> wrote:
While attempting to assign the array elements of an include file to a
variable the php tags embedded in the include file fail to
interpolate. What am I missing?
$t_file = file($PATH_DOCS . '/inc/navElem.inc.php');
$iw_mast .= $t_file[0];
so you'll need to put echo at the beginning of each line and quote each
line which means you'll also need to escape quotes within the line.
echo, quote, escape, rtm... right. I went round and round with this
for awhile. Almost gave up. Here's what I'm using:
ob_start();
include($PATH_DOCS . '/inc/navElem.inc.php');
$iw_mast .= ob_get_contents();
ob_end_clean();
.
- Follow-Ups:
- Re: can't use include file with php tags
- From: Johnny
- Re: can't use include file with php tags
- References:
- can't use include file with php tags
- From: Mike Collins
- Re: can't use include file with php tags
- From: Johnny
- can't use include file with php tags
- Prev by Date: Pls Help - PHP String Question
- Next by Date: Re: Pls Help - PHP String Question
- Previous by thread: Re: can't use include file with php tags
- Next by thread: Re: can't use include file with php tags
- Index(es):