Copy this folder and navigate to xampp folder which is basically located in c drive and inside this folder xampp find the htdocs folder and paste the project folder into this htdocs folder. After the project folder is successfully copied to the specified location on your computer. Place your php files in the htdocs folder located under the xammp folder on your. To run php file in windows, we need to install php in windows with apache web server. Guys i had exactly the same problem as well and in my cases it was htaccess file. Then start the server and open on a browser to view the page. This makes xampp a quick way to deploy web development solutions even on a localhost. For the first you need to download this app extract the file in to c. I have one folder named project1 in htdocs folder path is c. So my php project is causing localhost as well as localhostproject is downloading the index. How to run php file on windows using xampp codeandtuts. Go to the apache friends website and download xampp for windows.
It is a simple, lightweight apache distribution that makes it extremely easy for developers to create a local web server for testing purposes. Xampp is a completely free, easy to install apache distribution containing mariadb, php, and perl. Place your php files in the htdocs folder located under the xammp folder on your c. How to run a php project file in xampp localhost server youtube. Download xampp for mac osx be sure to select the proper version of php. How to transfer your phpmysql site to xampp for local. Xampp stands for crossplatform x, apache a, mysql m, php p and perl p. Everything you need to set up a web server server application apache, database mysql, and scripting language. Individually installing php and apache in windows are tedious process. How to install, start and test xampp on mac osx webucator. Once you get to the xampp s main folder, go to the. Now that we all of our files and database setup, we need to create a virtual domain for the site. The xampp open source package has been set up to be incredibly easy to install and to use. Xampp is an easy to install apache distribution containing mariadb, php, and perl.
By mistake i have download it from my server cpanel server. It is completely free to download and use and is developed and updated by apache friends. After completion of the installation, you can use the xampp control panel to start stop all servers. The first step of the process is to download xampp. All you need is a working copy of xampp and a php file.
Write this program in a notepad and save it as file. In xampp, apache, php and mysql configurations files are located in following locations. Under xampp root directory there is a folder called htdocs. You can also create any folders inside htdocs folder and save our codes over there. Go to xampp web site and download the installer based on your operating system.
1214 1652 82 138 1444 1501 264 1008 833 769 153 17 1388 169 700 347 570 717 660 681 1432 1633 1118 969 949 867 563 1142 1199 1172 239 589 741 765 1110 761 1553 888 101 898 488 827 862 318 1123 64 576