but when I check the file located in the htdoc file "index.php" all I see is the code... meaning it's not working.
Altrea wrote:You can't "open" files directly in your browser.
php files have to be processed by a php interpreter and your browser can't know, that you have a php interpreter somewhere on your machine.
Instead of open files directly, you must request them with the help of the http protocol.
e.g. if you want to request your \xampp\htdocs\index.php file, the correct url is http://localhost/index.php
another example: if you want to request \ampp\htdocs\projectxy\site.php the url would be http://localhost/projectxy/site.php
Did you try to open it with Windows Explorer?
Users browsing this forum: No registered users and 62 guests