OK I am making a new page in PHP because all my pages are in php an just wanna keep it that way and I'm using a script! Now I want to include my Header HTML Footer so how would I do that? I tried but I keep getting my footer and header mixed around and the html is at the very top!
<?php include_once 'header.php'; echo " <p> This is some sample HTML code </p> "; include_once 'footer.php'; ?> PHP:
of course it will stay the same when you make a call like : include_once 'header.php'; what you are doing here is getting the result of the execution of header.php and insert it . same here : include_once 'footer.php'; so at the end you will only have html that come from the 2 file + the middle code .
yeah weird coz i see : http://www.filefiesta.com/footer.php (his adsense code) http://www.filefiesta.com/header.php