Page 1 of 1

Error 404 in running first PHP code [solved]

PostPosted: 31. October 2012 17:28
by raj_4_PHP
Happy Halloween :)
I have started PHP coding yesterday though I have XAMPP installed beforehand.
https://localhost is giving correct XAMPP page in my mozilla browser, but its giving a 404 error while I am giving http://localhost/hello.php
hello.php is present in C:\xampp\htdocs and i have tried it without internet connection also.
I have gone through previous discussion on this in your pages but sorry 2 say, cudnt sorted out mine. Sorry, if I am wasting your valuable time in this silly question..
Thanx in advance :)

Re: Error 404 in running first PHP code

PostPosted: 31. October 2012 17:45
by Altrea
Hi raj_4_PHP,

please take a short look into your \xampp\apache\logs\error.log and your \xampp\apache\logs\access.log for further information about what request was sended and which file is expected in which directory.
Please doublecheck if your file have a .php file extension (check if you have hidden known file extensions in your Windows folder configuration).

best wishes,
Altrea

Re: Error 404 in running first PHP code

PostPosted: 01. November 2012 18:31
by raj_4_PHP
Hi Altrea,

This is something called xperience..amazing...I had hidden known file extension, which caused a .txt extension to be disappeared..After removing this, the code is working fine :)
Thanx will be a meager word to express my gratitude

Re: Error 404 in running first PHP code

PostPosted: 01. November 2012 19:16
by Altrea
I'm glad your issue could be solved.
Now i can wish you much fun with XAMPP and all that stuff :)