刚刚开始使用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>
但我看到的只是“欢迎来到我的主页”,没有“测试”。想知道我在这里缺少什么。
谢谢!