Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

AdrianK

macrumors 68020
Original poster
Feb 19, 2011
2,230
2
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.
Code:
<html>
<body>

<?php
echo "Testing 1, 2, 3";
?>

</body>
</html>

Any ideas?
 
Last edited:
Just re-read the about.com page on it - epic fail on my part :( Thanks.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.