Need Some PHP help - Home Brew Forums
Home Brew Forums > Home Brewing Beer > DIY Projects > Need Some PHP help

Reply
 
Thread Tools
Old 12-06-2012, 09:38 PM   #1
rockytoptim
HBT_SUPPORTER.png
 
rockytoptim's Avatar
Recipes 
 
May 2009
Livonia, MI
Posts: 775
Liked 95 Times on 76 Posts



So I just set up LAMP server on old laptop with the intention of using it to monitor my fermentation fridge.

Got web server (Apache2, PHP 5.3) up and running and can view simple webpage that I made. I have and issue in that I cannot get my server to show simple php code inside html file. I am guessing I missed something in the Apache2 config. Any help would be appreciated.

Code:
<html>  
<title>Test PHP</title>
<body>
<h1>Example</h1>

<?php echo "20"; ?>

</body>
</html>
Thanks Tim


__________________
On Tap: Bee Cave Robust Porter
On Tap: Bee Cave OktoberFest
On Tap: Bee Cave Kolsch
Primary: None
Up next: ????

 
Reply With Quote
Old 12-06-2012, 09:50 PM   #2
g33k499
Recipes 
 
Dec 2012
Posts: 2

Rename your html file to php and try again.

 
Reply With Quote
Old 12-07-2012, 01:40 AM   #3
rockytoptim
HBT_SUPPORTER.png
 
rockytoptim's Avatar
Recipes 
 
May 2009
Livonia, MI
Posts: 775
Liked 95 Times on 76 Posts


Thanks that did it.
__________________
On Tap: Bee Cave Robust Porter
On Tap: Bee Cave OktoberFest
On Tap: Bee Cave Kolsch
Primary: None
Up next: ????

 
Reply With Quote
Reply
Thread Tools



Forum Jump