php code shows in webpage...

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
tonyk11
Forum Newbie
Posts: 1
Joined: Sat Mar 08, 2008 9:54 am

php code shows in webpage...

Post by tonyk11 »

I struggled with whether or not this is a configuration question. I've tried about everything I can do. The php code is perfect. I've quad-checked it, but when I run the .html, the php code shows in the resulting page. I just recently installed a server on my computer, and tried to get it set up so that I could test the php locally, but I'm thinking I have a configuration problem. I have had some .html code run perfectly, but it just started showing the code recently, as in, over the past couple of days. I haven't used any new software or anything to write the code. I'm just very confused.

I used the WAMP5 installer with Apache 2.2.6 and php 5.2.5 and mySQL 5.0.45. I thought it was supposed to configure for you, but something is definitely wrong.

I appreciate any and all attempts to help me, and thank you very much in advance.

Tony
bertfour
Forum Commoner
Posts: 45
Joined: Fri Mar 07, 2008 7:33 am

Re: php code shows in webpage...

Post by bertfour »

rename your .html to .php

that helps...
Post Reply