26 Feb 2013

How to setup environment for PHP ?
AND
How to run PHP file ?

1. Download XAMPP from HERE .

2. Install it in your system. for more info. how to install Click Here

3. After installation reboot your system.

4. Open XAMPP control panel and start TOMCAT , APACHE , MYSQL.


5. To check that XAMPP is working or not Open your web browser and type localhost in address bar and enter.

if your page is not look like upper image that means there is some problem with your XAMPP.

6. C:\xampp\htdocs\ is the root of your web server. This is the place of our webpages.

7. Then for starting new project Go to the C:\xampp\htdocs\newproject or whatever your folder name you want.


8. For opening your project open the web browser and type localhost/newprject/index.php in address bar.

NOTE:here i already created a php page in C:\xampp\htdocs\newproject\ with name of index.php

9. We will see the PHP code in next post.