Hi guys i have a question.
I have a folder structure as below
TMS
|-css (folder)
|-bootstrap.css
|-custom.css
|-js (folder)
|-jquery.js
|-header.php
|-footer.php
|-employee.php
| training (folder)
|-trainings.php
my question is how can i include header.php inside the trainings i tried the following but now working
<?php include('http://www.example.com.ph/tms/header.php'); ?> and
<?php include('/tms/header.php'); ?>
Please help me thanks!
You can not include files using http
. Just go with this one instead:
include '../header.php';
Try this
<?php include('../header.php'); ?>
in your trainings.php
You need to go one folder back,means outside traning folder and then include your file:see below
<?php include('../header.php'); ?>