- PHP

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.

Apache running in XAMPP

And finally, open your browser and navigate to localhost/test.php or localhost/your_directory_name/test.php if you’ve made the file inside some directory.