In the XAMPP directory, there exists a folder called “htdocs”. Then copy that file program.php to C:/Program Files/XAMPP/htdocs.īefore running a PHP script, you must know where to write it.After writing it, save that file as "program.php".After starting both servers, you have to write a program in Notepad.Before you run or start writing any program in PHP, you should start Apache and MYSQL.Now that the installation is complete, let’s move ahead to see how to run a PHP script using the same. It is recommended that you keep the default directory “C:\xampp” and click on “next” to complete the installation. Next, select the directory where you want the software to be installed. On completing the download of the setup file, begin the installation process and, in the “Select Components” section, select all the required components. You can download XAMPP through the official website. XAMPP helps you to run your program smoothly.Īpache friends developed XAMPP, and it is available for everyone free of cost. To run any PHP program, you will need Apache or MYSQL databases, both supported by XAMPP. Now that you have a better understanding of the XAMPP software, let us move on to its installation. It is mainly used for web application testing on a local host webserver. XAMPP is an open-source web server solution package. Step 3: Then install MYSQL DB on your PC. Step 2: Then install PHP from its website. Step 1: Find a web server that supports PHP and MYSQL. How to Set Up and Install PHP for Your Project ? And also use it whenever you want to run a program. Library Support - PHP also has a collection of many, many advanced written codes that you can use repeatedly.It can be loaded when your network connection is slow.
0 Comments
Leave a Reply. |