Execute PHP and MYSQL programs in WINDOWS

You might have executed php and mysql programs in Linux platform but you can execute those programs in WINDOWS platform too :)

Steps to execute php and mysql programs in WINDOWS:-

  • Download XAMPP from here.



  • Now click on setup file and install XAMPP.



  • After installation, go to Start-->All programs-->XAMPP for Windows-->XAMPP Control Panel.



  • Left click on XAMPP tray icon next to the date(right bottom corner).



  • Now click on Start next to Apache and Mysql.





  • Place html files in htdocs folder(In my system, C:\xampp\xampp\htdocs).



  • Create folder with the name php in htdocs folder. Place your php files in php folder.



  • To create database, click on Shell(As you can see Shell Button in above snapshot) and type mysql -u root and other set of commands to create databases and tables as per your program.



  • Now go to browser and type http://localhost in address bar. Here, you can see XAMPP welcome page.





  • Now run your programs. For example http://localhost/example.html


Thank you for reading this article :)  Please do comments if you like this post and also if you have any doubts, please post it in comments panel :) :)