Skip to content

Instantly share code, notes, and snippets.



Last active Mar 20, 2020
What would you like to do?
Php Include Header and Footer from a root
<h1> This is the heading </h1>
// Define DOC_ROOT as index.php file directory
DEFINE('DOC_ROOT', dirname(__FILE__));
include_once( DOC_ROOT.'/header.php');
<p> This is the Body. </p>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment