XAMPP 1.7.2 Windows
I created this test file inlinephp.html
- Code: Select all
<html><head><title>Inline PHP testing</title></head>
<body>
<?php echo "<h1>This header was done in php</h1>\n"; ?>
This line was done in html
</body>
</html>
It displayed
- Code: Select all
This header was done in php\n"; ?> This line was done in html
PHP is working fine, all files with a .php extension work perfectly, I would like to be able to use some simple php code in .html files.
Is this possible.
Thanks,
Ed