XAMPP is a free and open-source cross-platform web server solution stack package developed by Apache Friends. It helps developers run PHP and MySQL locally for testing and learning.
XAMPP installs Apache, PHP, and MySQL in a single package. Apache handles HTTP requests, PHP processes server-side scripts, and MySQL stores application data.
C:\xampp)
// Simple PHP test file to verify PHP is working
<?php
echo "PHP is working!";
?>
Open your browser and visit http://localhost/test.php. If PHP is configured correctly, the browser will display:
PHP is working!
When you access a PHP file through localhost, Apache sends the file to PHP, PHP executes the script, and the output is returned to the browser as HTML.
htdocs folderlocalhost or 127.0.0.1 to access projectstest.php in htdocs and print your namephpinfo(); to view PHP configuration