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

Problems with the Windows version of XAMPP, questions, comments, and anything related.

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

Postby Chimericans » 17. April 2013 13:51

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.
Chimericans
 
Posts: 2
Joined: 17. April 2013 13:24
XAMPP Version: 5.6.3
Operating System: Windows XP (Chinese)

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

Postby JJ_Tagy » 17. April 2013 14:01

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.
JJ_Tagy
 
Posts: 544
Joined: 30. January 2012 13:44
XAMPP Version: 1.8.3
Operating System: Windows 7 x64

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

Postby Chimericans » 17. April 2013 16:25

Perfect. Problem solved. Removing "/htdocs" fixed the issue. Thank you so much!
Chimericans
 
Posts: 2
Joined: 17. April 2013 13:24
XAMPP Version: 5.6.3
Operating System: Windows XP (Chinese)


Return to XAMPP for Windows

Who is online

Users browsing this forum: Altrea and 60 guests