Hello Geeky, so today we are focusing on How to Open a PHP File on XAMPP. So please read this tutorial carefully so you may comprehend it in a better helpful way.
Guide: How to Open a PHP File on XAMPP
PHP is the most popular web programming language. A PHP code can act as a web server module or as a command line interface. To run PHP for a website, you need to install a web server like Apache and you also need a data server like MySQL. There are several web servers available for running PHP programs such as WAMP and XAMPP. The WAMP server is supported on Windows and XAMP is supported on both Windows and Linux. In this article, you will learn how to running a PHP program on a Xampp server.
How to Open a PHP file on XAMPP
- Go to the Apache Friends website and download XAMPP for Windows. For the simplest installation, download the Basic “Personal RAR backup” Package Wait for the download to complete and open it to start installing XAMPP. Click on “Install” button to start file extraction. When the Command Prompt screen appears, click the “Enter” button in all queries to accept the default settings.
- Start the XAMPP program. When it starts, XAMPP places itself in its icon board. The symbol is orange with a shape like a white bone in the center. Click the single icon to expand the Control Panel. Click on “Start” button next to “Apache” to start your Apache web server. When Apache is running, the word “Run” will appear next to it, highlighted in green. Restart “MySQL” of your PHP scripts based on MySQL database to run.
- Place your PHP files in the “HTDocs” folder under the “XAMMP” folder on your C: drive. The file path is “C: xampp htdocs” for your Web server. Make sure your PHP files are cached as such; they must have a .php file extension. Open up any web browser on your desktop and type “localhost” into the address box. The browser will open a list of files stored under the “HTDocs” folder on your computer. Click the link to a PHP file and open it to run a script.
- Create any folders you need to test PHP files in under the “HTDocs” folder. If you created a folder called “scripts,” then use the address “localhost / scripts” to open them in your browser.
Guide about How to Open a PHP File on XAMPP
In this guide, we told you about the How to Open a PHP File on XAMPP; please read all steps above so that you understand How to Open a PHP File on XAMPP in case if you need any assistance from us, then contact us.
How this tutorial or guide assisting you?
So in this guide, we discuss the How to Open a PHP File on XAMPP, which undoubtedly benefits you.
I hope you like the guide How to Open a PHP File on XAMPP. In case if you have any queries regards this article/tutorial you may ask us. Also, please share your love by sharing this article with your friends and family.