Sorry if this is a bit of a silly question, but I'm having some trouble getting php inside HTML working on 10.7.2.
The same code inside a .php file works fine. I'm using the version of Apache that ships with OS X and I've uncommented out the php5 module in httpd.conf.
Putting this inside a .html file will not show anything in a web browser.
Any ideas?
The same code inside a .php file works fine. I'm using the version of Apache that ships with OS X and I've uncommented out the php5 module in httpd.conf.
Putting this inside a .html file will not show anything in a web browser.
Code:
<html>
<body>
<?php
echo "Testing 1, 2, 3";
?>
</body>
</html>
Any ideas?
Last edited: