For some reason my code is just comment in my html.
I have tried using localhost/filename.html etc
and nothing seems to work...
Thank you!
<html>
<body>
<?php
echo "hello world";
?>
</body>
</html>
For some reason my code is just comment in my html.
I have tried using localhost/filename.html etc
and nothing seems to work...
Thank you!
<html>
<body>
<?php
echo "hello world";
?>
</body>
</html>
If you are running apache you could add the following in your .htaccess
file to process .html
files as they were php:
RemoveHandler .html .htm
AddType application/x-httpd-php .php .htm .html
Here are a couple of links further explaining the useage of .htaccess
files: