Spike Brewing 12.5 Conical Fermenter Giveaway!

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

Reply
 
LinkBack Thread Tools
Old 12-06-2012, 08:38 PM   #1
rockytoptim
HBT_SUPPORTER.png
Feedback Score: 0 reviews
 
rockytoptim's Avatar
Recipes 
 
Join Date: May 2009
Location: Livonia, MI
Posts: 802
Liked 92 Times on 73 Posts
Likes Given: 3

Default Need Some PHP help

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: ????

rockytoptim is offline
 
Reply With Quote Quick reply to this message
Old 12-06-2012, 08:50 PM   #2
g33k499
Feedback Score: 0 reviews
Recipes 
 
Join Date: Dec 2012
Posts: 2
Default

Rename your html file to php and try again.

__________________
g33k499 is offline
 
Reply With Quote Quick reply to this message
Old 12-07-2012, 12:40 AM   #3
rockytoptim
HBT_SUPPORTER.png
Feedback Score: 0 reviews
 
rockytoptim's Avatar
Recipes 
 
Join Date: May 2009
Location: Livonia, MI
Posts: 802
Liked 92 Times on 73 Posts
Likes Given: 3

Default

Thanks that did it.

__________________

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

rockytoptim is offline
 
Reply With Quote Quick reply to this message
Reply


Quick Reply
Message:
Options
Thread Tools