I'm working on a project where the identical content on all HTML pages might need to be changed. As a result, I reasoned that I would build a PHP file and only have to update that to make changes on all web pages.
The files are saved under:
index.html
number.php
EXAMPLE:
------------------------(HTML FILE)----------------------------
<html>
<head>
<title>Home</title>
</head>
<body>
<h1>Phone Number</h1>
<?php include('number.php') ?>
</body>
</html>
------------------------(PHP FILE)----------------------------
<?php
echo 4895553268;
?>
What would I be able to achieve without converting all of my html files to php? I've discovered that it functions, but I would like to only alter the HTML code. I've tried script tags and can't seem to get it to operate properly after using include require tags first.