Re: can't use include file with php tags
- From: Mike Collins <webspammer_@xxxxxxxxxxxx>
- Date: Sun, 27 Aug 2006 02:56:59 GMT
On Sun, 27 Aug 2006 02:39:18 GMT, Mike Collins
<webspammer_@xxxxxxxxxxxx> wrote:
While attempting to assign the array elements of an include file to a
Actually, the array is filled by the file function. Using include
interpolates the embedded php but I don't know how to assign the
include to a variable.
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.
- References:
- can't use include file with php tags
- From: Mike Collins
- can't use include file with php tags
- Prev by Date: can't use include file with php tags
- Next by Date: Re: can't use include file with php tags
- Previous by thread: can't use include file with php tags
- Next by thread: Re: can't use include file with php tags
- Index(es):
Relevant Pages
|