I have a problem with my XAMPP server after uninstalling an old version for a new one. I have a problem with executing PHP codes because when I put "localhost/file.php" it says "Object not found" or put the PHP document despite having the Apache server on.
When I access the XAMPP directory from localhost, it's completely empty despite I stored the site in the htdocs folder. And if you ask, the xampp folder's location is C:/xampp/. And I did put an .htaccess file in my file's directory.

Giving
localhostin the browser address bar refers tohtdocsfolder.As we can see the address as
localhost/xamppi.e you are refering tohtdocs/xamppif you have stored your file in
htdocsroot folder, then give the address aslocalhost