0
Guys I have two external files called header.html and footer html containing headers and footer of a site, with menus and etc. I need to include these external files in the site pages without using PHP.
There’s a way to do something like:
<?php require_once("include/header.html"); ?>
Making use of javascript or otherwise that is Client-side and not Server-side as in other answers?
Note that this process is more expensive for the browser than solving everything by the server, not to mention that it is sensitive to the speed (and signal quality) of the network
– Jefferson Quesado
@Jeffersonquesado Yes, but he doesn’t want to do it for the server.
– Sam
That’s why I put as a "note" about your answer, so that the AP understands what problems to face and that future people who stop here know it too. I like to put information that the idea is not legal, as the author of this reply made clear in the infographic: https://answall.com/a/240835/64969
– Jefferson Quesado