Error 404 in running first PHP code [solved]

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

Error 404 in running first PHP code [solved]

Postby raj_4_PHP » 31. October 2012 17:28

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 :)
raj_4_PHP
 
Posts: 4
Joined: 31. October 2012 16:55
Operating System: Windows XP

Re: Error 404 in running first PHP code

Postby Altrea » 31. October 2012 17:45

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
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Error 404 in running first PHP code

Postby raj_4_PHP » 01. November 2012 18:31

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
raj_4_PHP
 
Posts: 4
Joined: 31. October 2012 16:55
Operating System: Windows XP

Re: Error 404 in running first PHP code

Postby Altrea » 01. November 2012 19:16

I'm glad your issue could be solved.
Now i can wish you much fun with XAMPP and all that stuff :)
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 94 guests