如果我有一個文件,file.php,在同一個目錄中的index.html:如何在HTML中運行PHP?
file.php:
<?php
echo "<body><img src=\"hi.jpg\" /><br /><p>I was here</p>"
?>
的index.html:
<html>
<head></head>
<!-- I want to enter the PHP in file.php here --></body>
</html>
我如何把file.php放在index.html中?
這是非常類似的問題http://stackoverflow.com/questions/6065494/php-website-one-page-for-design/6065573#6065573,它已被回答。 – Luke 2011-06-12 19:24:32