Its my first time working with Apache,PHP,MySql. I downloaded and installed the latest package of these 3. Now I checked with apache and the index.html works. Now I replaced the index.html with some php script to check if my php works or not. When opened the html page again I see the php code directly. It seems it does not work. following is how my php code looks like.
<html>
<body>
<?php
echo "Hello World";
?>
</body>
</html>
when I open my index.php , I see the above code itself. Can anybody let me know whats wrong and how can i fix it?
.php
hasn"t been added to your Apache configuration (httpd.conf
) yet. – PeeHaa Jan 5 "12 at 2:48localhost/index.php
or through your regular file system path to the file? Make sure you are using localhost. – Paulpro Jan 5 "12 at 2:48