Today we are going to see about the simple programming language that is PHP. First of all i have to tell the softwares that are needed to run the php for beginners.
1.Wamp server or XAMPP or Easyphp which will act as a localserver.
2.if you want Mysql database you can install seperately or it may come with the Wampserver or Xampp,It wont come with easyphp.
that's all you need.
Now we see the installation procedure for wamp server..
STEP 1:
Download the setup from the link
STEP 2:
Double click on the setup and execute it (for windows only) and you will get the window like this..
STEP 3:
Then click on next and accept the agreement. Select the directory click next-> next-> Then Install.
It will install the necessary files then select the default browser and click ok set the SMTP account if needed. Then Finish.
That’s all.
This installation will have the Php and Mysql software.
TO USE THE WAMP SERVER
STEP1
1.First start the wamp server if not already started.
2.This will show a speedometer icon which is fully loaded.
3.Suppose it is partially red or any other thing there is some problem. And check that.
That’s all to start the wamp server.
STEP 2:
1.Write php code in notepad or any other text editor and save it in .php extension.
2.Put that file in www directory which is located in (Installationdirectory\wamp\www)
STEP 3
1.Start your browser and type localhost or ip address of the localhost.
2.You will see the file that you have created.
3.Click on the file which is shown as a link.
That’s all the php file will show result in the browser.
i will tell you about using MySql and using php in my next post..
No comments:
Post a Comment