Php 在 Windows 主机上找不到文件
Php file not found on Windows hosting
Windows 在 godaddy 上托管。
我有 4 个页面,主页是 Index.html
,其余 3 个是 .php
页。
当我上传 Index.php
文件时,该网站无法运行,但是当我将 Index.php
文件替换为 Index.html
时,该网站运行良好。
Index.php
文件有什么问题?
php 是从
开始的扩展
<?php
只需将新文件设为 sample.php 并键入此代码作为示例而不是测试
<!DOCTYPE html>
<html>
<body>
<h1>My first PHP page</h1>
<?php
echo "Hello World!";
?>
</body>
</html>
检查它是否有效,如果它有效,那么你的页面有问题
Windows 在 godaddy 上托管。
我有 4 个页面,主页是 Index.html
,其余 3 个是 .php
页。
当我上传 Index.php
文件时,该网站无法运行,但是当我将 Index.php
文件替换为 Index.html
时,该网站运行良好。
Index.php
文件有什么问题?
php 是从
开始的扩展<?php
只需将新文件设为 sample.php 并键入此代码作为示例而不是测试
<!DOCTYPE html>
<html>
<body>
<h1>My first PHP page</h1>
<?php
echo "Hello World!";
?>
</body>
</html>
检查它是否有效,如果它有效,那么你的页面有问题