...I include them in the index? ok so I took some code that I want to show up on every single page I have making the most simple thing to do is create separate files and just include them in my main file. I know the "include" line only works with PHP so what I did was took the code that I wanted separate made a header.html and footer.html file put them in an includes folder and added
<?php
include ('./includes/header.html');
?>
<?php
include ('./includes/footer.html');
?>
to the top and bottom of my index.html file... when I pull up index.html it doesn't show the sections in the header and footer files but if I go to them directly IE: brandon/includes/header.html or brandon/includes/footer.html it pulls up exactly how it should (only the header line or only the footer line with correct formatting)
any ideas as to why?
<?php
include ('./includes/header.html');
?>
<?php
include ('./includes/footer.html');
?>
to the top and bottom of my index.html file... when I pull up index.html it doesn't show the sections in the header and footer files but if I go to them directly IE: brandon/includes/header.html or brandon/includes/footer.html it pulls up exactly how it should (only the header line or only the footer line with correct formatting)
any ideas as to why?