I am including the footer content using this code
<?php include 'footer.php'; ?>
It happens that I also have html files. How can I also include the footer in my html files?
I am including the footer content using this code
<?php include 'footer.php'; ?>
It happens that I also have html files. How can I also include the footer in my html files?
You can't, in order to include PHP files in your other files, all files need to be in the PHP extension.
In most cases, just renaming your HTML files to .php
will do fine.
There is no native include in HTML. Do these other files need to be HTML? If not you could change them to PHP which still lets you use any HTML code plus the PHP include.