Page 1 of 1

Hello everyone, and a question (the source code shows STILL)

PostPosted: 17. April 2013 13:51
by Chimericans
Hi everyone. I'm new to PHP so first of all I want to say hello and thank you for contributing to this forum. I had an awesome idea for a website so I have been teaching myself web development on and off during whatever free time I get for some months and I'm finally ready to tackle PHP.

I'm using XAMPP to check my code. When open the file in my browser the source code shows instead of the intended result. I did a search and found this http://community.apachefriends.org/f/viewtopic.php?f=16&t=50681&p=195072&hilit=php+source+shows#p195072

But I still have the problem. My first try the browser showed this: file:///C:/xampp/htdocs/NEWPAGE.php
Then I followed the instructions on the resolved question and the browser looked like this: http://localhost/htdocs/NEWPAGE.php but shows in the body :
"Object not found!

The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.

If you think this is a server error, please contact the webmaster.

Error 404

localhost
Apache/2.4.3 (Win32) OpenSSL/1.0.1c PHP/5.4.7"

Your help is so appreciated, and people in the future will owe you gratitude for helping me make a website that they will LOVE.

Re: Hello everyone, and a question (the source code shows ST

PostPosted: 17. April 2013 14:01
by JJ_Tagy
htdocs should already be your root so try http://localhost/NEWPAGE.php
Also remember it is case sensitive so NEWPAGE and Newpage and newpage are all different.

Re: Hello everyone, and a question (the source code shows ST

PostPosted: 17. April 2013 16:25
by Chimericans
Perfect. Problem solved. Removing "/htdocs" fixed the issue. Thank you so much!