I had a test.html:
Code: Select all
<html>
<head></head>
<body>
<ul>
<?php for($i=1;$i<=5;$i++){ ?>
<li>Menu Item <?php echo $i; ?></li>
<?php } ?>
</ul>
</body>
</html>
Code: Select all
. Menu Item
Code: Select all
<html>
<head></head>
<body>
<ul>
<?php for($i=1;$i<=5;$i++){ ?>
<li>Menu Item <?php echo $i; ?></li>
<?php } ?>
</ul>
</body>
</html>
I changed the extension and it worked!
Code: Select all
. Menu Item 1
. Menu Item 2
. Menu Item 3
. Menu Item 4
. Menu Item 5
Code: Select all
<html>
<head></head>
<body>
<ul>
<li>Menu Item 1</li>
<li>Menu Item 2</li>
<li>Menu Item 3</li>
<li>Menu Item 4</li>
<li>Menu Item 5</li>
</ul>
</body>
</html>
Code: Select all
AddType application/x-httpd-php .php .html
I am just a little concerned about all html pages being rendere/processed that could cause some delay.
It is good to know both work.