Home Brew Forums > Home Brewing Beer > DIY Projects > Other > Need Some PHP help
Reply
 
Thread Tools
Old 12-06-2012, 09:38 PM   #1
rockytoptim
HBT_SUPPORTER.png
Feedback Score: 0 reviews
 
rockytoptim's Avatar
Recipes 
 
Join Date: May 2009
Location: Livonia, MI
Posts: 821
Liked 95 Times on 76 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 online now
 
Reply With Quote
Old 12-06-2012, 09: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
Old 12-07-2012, 01:40 AM   #3
rockytoptim
HBT_SUPPORTER.png
Feedback Score: 0 reviews
 
rockytoptim's Avatar
Recipes 
 
Join Date: May 2009
Location: Livonia, MI
Posts: 821
Liked 95 Times on 76 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 online now
 
Reply With Quote
Reply


Thread Tools



Forum Jump

Newest Threads

LATEST SPONSOR DEALS