I have created a small HTML file
- Code: Select all
Hello, today is <?php echo date('l, F jS, Y'); ?>.
When I open up the page in my browser at 127.0.0.1/test1.html I get the following:
Hello, today is .
The HTML code is displayed, but no PHP code.
If I rename the same file test1.php and open it in the browser I get the correct display of
Hello, today is Friday, October 9th, 2015.
Should the html file work with embedded php?