can't use include file with php tags
- From: Mike Collins <webspammer_@xxxxxxxxxxxx>
- Date: Sun, 27 Aug 2006 02:39:18 GMT
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];
undesired output:
<ul><li><a href="<?php echo $absPath; ?>/<?php echo $p0_file;
?>.php"><?php echo $p0_label; ?></a></li></ul>
would like to get:
<ul><li><a href="localhost/filename.php">link text</a></li></ul>
Thank you.
.
- Follow-Ups:
- Re: can't use include file with php tags
- From: Johnny
- Re: can't use include file with php tags
- From: Mike Collins
- Re: can't use include file with php tags
- Prev by Date: Re: How to read (or adjust) a single entry of an object wich comes from an array
- Next by Date: Re: can't use include file with php tags
- Previous by thread: How to read (or adjust) a single entry of an object wich comes from an array
- Next by thread: Re: can't use include file with php tags
- Index(es):