나는 내 PHP 새 사이트에서 일하고 있습니다. 여기에 PHP 코드를 사용하여 HTML 페이지를 작성하고 싶습니다. 여기서는 file_get_contents를 사용했습니다. 예 :file_get_contents 페이지가 PHP를 지원하지 않습니다
$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 코드가 나는 PHP 변수에서 제목, 고도의 src 값을 할당 할
<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 변수에서
많은 의미가 없습니다. – yoda