How to make a PHP file in XAMPP
Simply create a new file, e.g.
test.php inside your
xampp/htdocs folder or another folder you’ve picked to have your PHP files.
Then, open the XAMPP and make sure Apache is ON.
And finally, open your browser and navigate to
localhost/your_directory_name/test.php if you’ve made the file inside some directory.