1<!-- Wrap inside the head tag -->
2<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
1// Include a file, if it can't be found: continue.
2<?php
3include 'mainfile.php';
4?>
5
6// Alternatively: Require a file to be imported or quit if it can't be found
7<?php
8 require 'requiredfile.php';
9?>
1<body>
2<?php
3 define('ROOT_PATH', dirname(__DIR__).'/');
4 include ROOT_PATH.'header.php';
5 include ROOT_PATH.'main.php';
6 include ROOT_PATH.'footer.php';
7?>
8</body>
1// Require a file to be imported or quit if it can't be found
2<?php
3 require 'requiredfile.php';
4?>