I can either have each one of my pages like this :
Code: Select all
<?php require_once 'header.php'; ?>
<p>this is the content in index.php</p>
<?php require_once 'footer.php'; ?>Code: Select all
<?php require_once 'header.php'; ?>
<?php require_once '$x.php'; ?>
<?php require_once 'footer.php'; ?>Any thoughts? I can't really think of any advantages/disadvantages either way.. but I am very new to PHP. Thanks.