It repeats the echo across the first line of the window. Feel free to snarl derisively when you see this.
- Code: Select all
Infinite loops can't work with the HTTP protocol. Your browser sends a request to a server, the server processes the request and if it has completely processed it it sends a response back to the browser. If the process never ends your browser never gets something back.
Alex wrote:Stupid path question: htDocs is the root for localhost correct?
It's a little bit more complicated than that. Your Apache HTTPD is configurated to listen on port 80 (default port for http). The configurated root directory to serve files is \xampp\htdocs\. Your Windows has configurated a loopback adapter on IP 127.0.0.1 so that IP is routed back to your very own computer. And your Windows has configured a simulated domain name resolution for localhost which is mapped to 127.0.0.1.
Alex wrote:So any folder or file within htdocs I wanted to access would be thusly:
would be a request for \xampp\htdocs\php\php25.php
Alex wrote:Is there any way to view an index of a folder?
Only if the request is not a valid ressource file and the folder doesn't contain one of the configurated index files.http://httpd.apache.org/docs/current/en ... ml#options