sideCategory1

Breaking News
Loading...
Saturday, 7 September 2013

HOW TO SET ENVIRONMENT FOR PHP DEVELOPMENT

21:32
PHP is a server side scripting language. PHP is short for PHP: Hypertext Preprocessor. Here preprocessor means that PHP makes changes before the HTML page created. If you are a web designer then I think you already knows about HTML, CSS or JAVASCRIPT & if you want to learn PHP then you should know these web languages. PHP syntax is similar as C language. PHP has similar control structure - IF-ELSE, FOR, WHILE, DO-WHILE as C language have. But for PHP execution it needs a server So today in this tutorial I will show you how to setup environment to execute PHP on your localhost. Here are some easy steps given below , just read and follow them one by one.



STEP 1:
First of all we need a software package for this. So we'll use XAMPP for this task. You can download XAMPP from official website of XAMPPXAMPP OFFICIAL WEBSITE.


STEP 2:
Now just install it on your computer.



STEP 3:
After complete installation we'll get this type of icon on our desktop. Just click on that to open XAMPP
HOW+TO+SET+ENVIRONMENT+FOR+PHP+DEVELOPMENT

STEP 4:
Now you'll see below type of screen in front of you.

STEP 5:
Now you have to start a server i.e Apache & a database i.e. MySql. [Note: database is optional but if we want to deal with database then we have to start it]


STEP 6:
Okay, now you have almost. done. Now question is that how to execute PHP file on localhost so to do this you have to follow next step.


STEP 7:
Now open any browser on your computer and open this link http://localhost or http://127.0.0.1 . Now you will a see a webpage. To add your own webpage.  Just follow next step.

STEP 8:
Now if you want to add your own webpage then just follow this path in your computer C:\xampp\htdocs . Now in this folder create a new folder e.g. Smarttricks & create a index.php file in it.



STEP 9:
Now again open your browser & this time open http://localhost/Smarttricks . If you will open this path in your browser then it will open index.php file in Smarttricks folder.

0 comments:

Post a Comment

We are Eagerly Waiting for Your Comments Please Comment Here...!

 
Toggle Footer