Derek Derek - 1 year ago 78
HTML Question

I am trying manually update all static HTML files

I have right now one project on static HTML with two languages and I have to manage everything by myself.
So if something new appears in header/footer I have to update 20 HTML files.

Also this project is hosted on normal shared hosting.
How can I make less painful, if I have to change something?
Right now i just bulk find/change in folder with sublime.

P.S I can't use any CMS. Must be static.

Answer Source

Put the HTML content of the header in a PHP file and include it in every page, like this:

<?php include('header.php'); ?>

This way you only have one file (header.php) to edit.

More details on include() can be found at:

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download