Re: can't use include file with php tags



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



Relevant Pages

  • Re: Integer overflow in Excel using Win32::OLE
    ... } is the array deref operator. ... It also interpolates in a string. ... Every twenty-four hours about 34k children die from the effects of poverty. ...
    (comp.lang.perl.misc)
  • Re: printing array elements
    ... What if the array you're gonna print is tied? ... Unless the tied class interpolates an array into a string ... It's very unlikely to be of any use in a tied class FETCH method ... In this block the items of any array interpolated into a string are ...
    (perl.beginners)
  • Re: printing array elements
    ... What if the array you're gonna print is tied? ... Unless the tied class interpolates an array into a string ... In this block the items of any array interpolated into a string are ...
    (perl.beginners)