簡體   English   中英

php 文件不呈現 html 頁面的問題,只是編寫的代碼

[英]Issue with php file not rendering html page, just the code written

我有一個用 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>

謝謝@Dharman 默認文件不是使用 php 協議進行操作的文件的實際鏈接。 File:///C:/....更改為Http://localhost/directory/file

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM