Hyvor Developer
  Home   Download   Copy
Code
<html>
<body>

	<?php require_once 'header.php' ?>
	<p>
		I'm using the require_once statement for header and include for footer. 
		No matter what we used, require_once checks if the file was included or required earlier. 
		So, last require_once has no effect
	</p>
	<?php include 'footer.php' ?>

	<?php require_once 'footer.php'; // this has no effect ?>

</body>
</html>
Result