我正在尝试访问我的function.php文件,因此我将能够使用其中的函数.但我无法连接它.我尝试单独运行PHP,没有遇到任何问题.但是当我将它包含在我的HTML中时,就会发生这种情况.
HTML代码:
<!DOCTYPE html>
<?php
include("functions/function.php");
?>
<html>
<head>
<title>Online Shop</title>
<link rel='stylesheet' href='../CSS/style.css' media="all"/>
</head>
<body>
<!--Main Wrapper starts here!-->
<div class="main_wrapper">
<!--Header Wrapper starts here!-->
<div class="header_wrapper" >
<img id="logo" src="../Pictures/logo.png"/>
<img id="banner" src="../Pictures/green-banner.jpg"/>
</div>
<!--Header ends here!-->
<!--Menu Bar starts here!-->
<div class="menubar">
<ul id="menu">
<li><a href="#"> Home </a></li>
<li><a href="#"> All Products </a></li>
<li><a href="#"> My Account </a></li>
<li><a href="#"> Sign Up </a></li>
<li><a href="#"> Shopping Cart </a></li>
<li><a href="#"> Contact Us </a></li>
</ul>
<div id="form"> …Run Code Online (Sandbox Code Playgroud)