?> The require() function is used to include a PHP file into another irrespective of whether the file is included before or not. 


The require_once() will first check whether a file is already included or not and if it is already included then it will not include it again

<?php require_once 'footer.php';?>



<?php require 'footer.php';?>