You can call PHP from within HTML pages.
You have to configure httpd.conf to tell Apache to look for PHP in files with the .html extension.
This is done with an AddType declaration:
Code:
AddType application/x-httpd-php .shtml
You then just have to put the PHP into the HTML files.
Code:
<?php
/*
This is PHP code.
*/
?>
Alternatively, I have also seen people call external PHP code using JavaScript, which seems to be interesting:
Code:
<script src='http://www.example.com/example.php' type="text/javascript"></script>
Another alternative is to use .php files and embed the existing HTML within them.
Code:
<?php
/* PHP goes here */
?>
<!-- HTML goes here -->
<?php
/* More PHP goes here */
?>