【发布时间】:2011-06-17 01:51:08
【问题描述】:
我正在使用我的 php 新网站。这里我想用php文件写代码写一个html页面。在此我使用了 file_get_contents。例如。见下文
$page_old.="<table width='1051' border='0' cellspacing='0' cellpadding='0'>";
$page_old.="<tr><td height='50' class='tittle'>Test</td></tr>";
$page_old.="<tr><td class='content'>My content Body</td></tr></table></td></tr>";
$page_old.=file_get_contents('../contents/footer.php');
fwrite($fp_old,$page_old);
fclose($fp_old);
我的页脚页面包含一些 php 代码,见下文
<td colspan="4"><a href="../more-products.php?feat1_id=YlX>PdRf" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image49','','../images/Kluz_usa_s_over_18.jpg',1)"><img src="../images/Kluz_usa_s_18.jpg" name="Image49" width="276" height="162" border="0" alt="Universal Laser Systems VersaLASER " title="<?=$test_vra?>" ></a></td>
我想从 php 变量中分配标题、alt src 值。但结果不正确。例如。我的标题标签显示
我如何显示来自该 php 变量的实际内容
提前致谢
【问题讨论】: