![]() If you have any questions regarding the “PHP using XAMPP” tutorial, please ask away in the comments section of this article, and we’ll have our experts answer them for you. ![]() ![]() The Post Graduate Program in Full Stack Web Development covers all the fundamental and advanced concepts, making your journey towards learning PHP an easy one. In this “PHP using XAMPP” tutorial, you looked into why you need XAMPP, what XAMPP is, how to install XAMPP, and finally, how to run your first PHP script on it.Īre you planning to take the plunge and do a course on PHP? In that case, Simplilearn’s PHP course would be an excellent choice. Enroll in our PGP in Full Stack Web Development today! Conclusion Learn right from the basics of JavaScript to advanced concepts of Angular, Spring Boot, Hibernate, JSPs, MVC, etc. Now navigate to your browser and type in “localhost/demo/” in the address bar to view the output.Ĭongratulations, with this, you have created a PHP file and also executed the program successfully. Now, to see the script output, open the XAMPP control panel and start Apache to host the local webserver, where our script will be running.Ĥ. Inside the demo folder, create a new text file and name it “index.php” and write the following script.ģ. It’s considered good practice to create a new folder for every project you work on.Ģ. After restarting your lampp, it will work fine. Replace xampp-linux-1.8.1.tar.gz with your file name. ![]() Go to “C:\xampp\htdocs” and inside it, create a folder. Just remove the version where the MySQL is not started with the command rm -rf /opt/lampp and the command: tar xvfz xampp-linux-1.8.1.tar.gz -C /opt. This is where all the programs for the web pages will be stored.ġ. In the XAMPP directory, there exists a folder called “htdocs”. To make the lampp installation more secure run the lampp security wizard to set passwords and follow the on screen prompts. Before running a PHP script, you must know where to write it.
0 Comments
Leave a Reply. |