php文件没有呈现html页面的问题,只是编写了代码

php文件没有呈现html页面的问题,只是编写了代码,php,xampp,Php,Xampp,我有一个用HTML编写的注册页面,在页面的开头有一些php代码,只呈现编写的代码,而不是纯文本的网页,我一到家就会发布照片 重新安装xammp以查看是否有损坏的文件 没有错误代码显示或网页只是我写的纯文本 这是我的密码: <?php require_once('connection.php'); ?> <!DOCTYPE HTML> <HTML lang="en"> <meta charset="utf-8"> <link rel="sty

我有一个用HTML编写的注册页面,在页面的开头有一些php代码,只呈现编写的代码,而不是纯文本的网页,我一到家就会发布照片

重新安装xammp以查看是否有损坏的文件

没有错误代码显示或网页只是我写的纯文本

这是我的密码:

<?php
require_once('connection.php');
 ?>
<!DOCTYPE HTML>
<HTML lang="en">
<meta charset="utf-8">
<link rel="stylesheet" href= "style.css">
<script src="myFunction.js"></script>
<script src="video.js"></script>
<head>
<title>Young Theod - Moorish Music</title>
</head>
<main>
  <header>
    <p>
      <div class="logo">
    <img src="Mooringmusic.jpg" alt="Mooring Music" class="center">
  </div>
</p>
</header>
  <div class="dropdown">
    <button onclick="myFunction()" class="dropbtn">Menu</button>
    <div id="myDropdown" class="dropdown-content">
      <a href="home.html">Home</a>
      <a href="discography.html">Discography</a>
      <a href="videos.html">Videos</a>
      <a href="gallery.html">Galley</a>
      <a href="shop.html">Shop</a>
      <a href="portfolio.html">Portfolio</a>
      <a href="list.html">Stay Updated</a>
    </div>
  </div>
</main>
<footer>
  <h5>Designed and maintained by Unsullied Technologies L.L.C ®</h5>
  <time></time>
</html>

年轻的西奥德摩尔音乐

菜单 由无污染技术L.L.C®设计和维护
谢谢你@Dharman

默认为文件,而不是使用php协议将文件链接到操作的实际链接。从
F更改ile:///C:/....
Http://localhost/directory/file

欢迎来到StackOverflow。将来,请等到一切准备就绪后再问问题——“我一回家就发布照片”——截图对你没有多大帮助;您需要共享您正在使用的实际代码。请看一看。这可能是重复的只是它的开始想要测试它的运行仍然要添加更多的php代码和我的其他php脚本连接到服务器做同样的事情只是显示纯文本,而不是代码的实际功能。如果它不是来自扩展,检查你的档案encoding@JoshuaT我真的很抱歉,我把午餐送到了电脑旁边,并试图不让老板看到我在工作中编程。