我怎样才能加载另一个HTML/PHP页面的一部分?从另一个文件加载页面的一部分
我现在的情况是:
我有包含PHP文件:
$dirname = dirname(__FILE__); //Path to your *.php file
$file = $dirname."/enmainheader.php";
$contents = file($file);
$string = implode($contents);
print_r($string);
而且我enmainheader.php包含:
<image id="logo" src='<?php echo getBaseUrl();?>/images/logo.png'>
我的问题是:它展示的php标签作为一个字符串没有得到我的图像地址。 任何帮助,将不胜感激。
常见的问题。您没有搜索超过2分钟。 – 2013-04-30 11:51:22