<!DOCTYPE html>
<html>
<head>
<title>External PHP File</title>
</head>
<body>
<?php include 'example.php';?>
<body>
</html>
/*You need to change that .html file to .php file. In this way,
you can easily link one php file to another.*/
<html>
<body>
<h1>Welcome to my home page!</h1>
<p>Some text.</p>
<p>Some more text.</p>
<?php include 'footer.php';?>
</body>
</html>