Esthermiller wrote:My browser bar shows:
And thats the problem.
serverside programming language files can't simply be opened in a program, they have to be processed, in your case by an php interpreter.
If you simply open the file in your browser, your browser simply doesn't know what to do with that file. Your browser analyzes the file, sees some HTML which he can render (he is really happy about that) and with the rest of the not understandable syntax he tries it's best to just output it as plain text.
Everything which results in an filebased path in your browsers address bar doesn't work. Webscript files has to be requested with a valid URL, like they are saved somewhere in the internet. For scripts saved on your own computer, the domainname localhost is mapped to your own computers loopback IP address 127.0.0.1. This domainname can be used in URLs.
Your Apache Webserver is listening on requests from a special port (by default port 80) and tries to find the file inside his allowed folder structure.
In your case D:\xampp\htdocs\ is by default the root folder for your Apache. This root folder can be requested very simple by requesting your local domainname http://localhost/
Every folder and file inside this root folder can be accessed by adding the name of it in the URL. For your example:
If you want to request your file D:\xampp\htdocs\Esther\hola.php
The URL will be http://localhost/Esther/hola.php