I'm trying to set all header inside 1 folder name header.php
So that everytime i can just use
<? php include ("header.php")?>
to set up all my stylesheet, JS and etc... but once i created a new file and create new php try to include my "header.php" it shows this error message
Warning: include(header.php): failed to open stream: No such file or directory in
C:\xampp\htdocs\WebEnt\Certain View File\Register.php on line 5
Warning: include(): Failed opening 'header.php' for
inclusion (include_path='C:\xampp\php\PEAR') in
C:\xampp\htdocs\WebEnt\Certain View File\Register.php on line 5
header.php
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" href="Picture/SEGI2.png">
<title>EC-Submission</title>
<!-- Bootstrap Core CSS -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<!-- Custom CSS -->
<link href="css/custom.css" rel="stylesheet">
<!--Own Customized CSS by Jake-->
<link href="css/WebCustom.css" rel="stylesheet">
<!-- jQuery -->
<script src="js/jquery.js"></script>
<!-- Bootstrap Core JavaScript -->
<script src="js/bootstrap.min.js"></script>
</head>
can anyone provide the easiest solution? Thank YOU
require_once?require_once(__DIR__."/../header.php")