'xampp is not showing .php files saved in htdocs folder

I am using windows 7 and just installed xampp server to "E:\xampp" in my laptop to learn php. Now the problem is whenever I start xampp server by starting "xampp_start" in xampp folder and start Apache and MySQL from "xampp-control" and type localhost in my browser it automatically gets converted into "localhost/xampp/" and display a default page instead of displaying the .php file which I created in htdocs folder.
Another problem is when I created a folder in htdocs folder and saved a index.php and another .php file which was created by me, it is not showing that folder too.
I know this question has been asked before but I didn't get any solution from there because I started xampp_start from xampp folder and Apache & MySQL from xampp-control. So please help. Thanks in advance.
This is the default picture which is being displayed:
enter image description here



Solution 1:[1]

First copy the files of htdocs and paste on any drive and delete the htdocs folder then create another folder and paste the files in this folder and restart the server.

Solution 2:[2]

First make sure you go to Local Disk (C:), then go to xampp -> htdocs-> and create your folder.

Solution 3:[3]

Hi Guys Here Iam Gonna Show You How You Can Fix This Error Follow me Don't worry ! If xampp is not showing .php files in htdoc/folder OK: Just change the name of that file which is not showing and refresh or reopen the localhost directory it will-be show Your file If this method work or not comment below Good luck and keep it up. @gamerinc

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 user5060662
Solution 2 Zhaklin
Solution 3