You are here: Re: can't use include file with php tags « All PHP « IT news, forums, messages
Re: can't use include file with php tags

Posted by Mike Collins on 08/27/06 02:56

On Sun, 27 Aug 2006 02:39:18 GMT, Mike Collins
<webspammer_@_yaho-o_.com> 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.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация