Php file not working in localhost(browser) or it show’s previous projects, then try this
First turn off your XAMPP server

then
Go to vhost C:\xampp\apache\conf\extra

Open vhost in notepad or any texteditor.
Then remove these hastags

Like this:

Now save and close the vhost
on the XAMPP server
Then goto browser and write localhost/filepath

Now might be your problem is solved