How to run PHP code in XAMPP?
In this tutorial we well see, how to execute PHP code in local server using XAMPP. in windows local system. For that we have to follow the following steps to run PHP Code or PHP Script.
- Install the XAMPP in Local System : To install XAMPP in your localsystem we have to download it from the official website of XAMPP Server : https://www.apachefriends.org/download.html
- After installing the xampp, we have to start Apache service to execute code in server in our local system and also start MYSQL server if Required.
- In the Next Step we have to create sub directory in `xampp/htdocs`. In this tutorial we will create direcctory named `php-code`.
- In this directrory, We will create one file named `index.php` and write php code init.