Please I need help with accessing my html/php file with localhost on my browser,i turn my xampp on and tried to access my html/php file,but it is still not working
That’s what I keep getting everytime
Please I need help with accessing my html/php file with localhost on my browser,i turn my xampp on and tried to access my html/php file,but it is still not working
That’s what I keep getting everytime
2
Answers
Normally you don’t have to enter xampp/htdocs in the link. localhost is reffering to your xampp htdocs folder "automatically". Try localhost/phpinvscode
If you put your index.html file in the htdocs folder directly you would only need to enter localhost in the browser.
The path component of the URL to your file starts at the directory specified in the
DocumentRoot
configuration option for your Apache HTTPD server. This probably defaults to thehtdocs
directory.It doesn’t start at the root of your filesystem. Web servers do not, by default, expose every file on your hard disk to the network (which would be a scary default for security reasons).