Quantcast
Channel: lapp (Forum tag)
Viewing all articles
Browse latest Browse all 34

LAPP PHP in .html

$
0
0

I would like to configure apache to execute php scripts w/in .html documents.

i.e. this text in a file named phptest.hrml:

<html>

    <head>
        <title>PHP in HTML Test</title>
    </head>
    <body>
        <ul>
            <?php for($i=1;$i<=5;$i++){ ?>
            <li>Menu Item #<?php echo $i; ?></li><?php } ?>
        </ul>
    </body>
</html>
 

Have tried multiple variations of .htaccess with no luck.

Seems like this sould be pretty straight forward.


Viewing all articles
Browse latest Browse all 34

Trending Articles