I have been learning some basic PHP via codeacademy.com recently, and am currently attempting to run it on my PC. I am using jEdit to write the code, and xampp/Apache as a server. The actual code looks like:
<html>
<body>
<?php
echo "<p> I know how to run a PHP Program in XAMPP! <\p>";
?>
</body>
</html>
Running this code by typing
http://localhost/[my directory]
into the URL bar of my browser returns Error 403 - access to the directory is forbidden on this server.
I've done some searching around, and I understand that I need an index.html or index.htm file, but I don't know what these are - my knowledge of html is extremely limited.
If someone could offer any help on how I'd bypass the forbidden access message, or if there's another way to run PHP code, I'd be extremely thankful.