【发布时间】:2013-11-13 10:18:03
【问题描述】:
刚刚开始使用 php。在 index.php 我有
<?php
echo 'test';
?>
当我转到 localhost:8080/php/index.php 时,我看到了“测试”。但是我用这段代码制作了一个 HTML 文件 index.html:
<html>
<body>
<?php include 'index.php'; ?>
<h1>Welcome to my home page!</h1>
</body>
</html>
但我看到的只是“欢迎来到我的主页”,没有“测试”。想知道我在这里缺少什么。
谢谢!
【问题讨论】:
-
哈哈,我知道这是一个菜鸟问题,但为什么这被否决了,所以我以后可以避免这种习惯?