How To Build And Run php Application On DreamWeaver-Explained With Images

Trying to configure dreamweaver for php is easy and would not take a long time.

Php development in Dream weaver

Php development in Dream weaver

Just Follow this steps1.Open wamp server or Install It

A wamp server needs to be running to run php, so open wamp server.

If you have already installed wamp server then you can skip this steps,for rest of you download wamp server from here….

If you dont know what is a wamp server click here….. After downloading wamp server install it on your pc and  turn it on.

2.Open DreamWeaver

3.Click on ” New site “

Select new site

Select new site

4..A new Window will open.on that there are two tabs “Basic” and “Advanced”.Click on ÓAdvanced”. After clicking change the setting as it appears in image.

Change the setting as in image

Change the setting as in image

You will notice i have given the following setting:

Sitename : sitename(this is the name of your site,you can of course give any name)

Remember your local root folder must be inside www folder of wamp,You can just type like in image,it will create the folders for you automatically

(to use wamp server you have to put ur php code in www root folder,i have here created another folder called sitename inside it,and any thing i write will be stored in it)

Http address:http://localhost/sitename/

(since you are testing php on your own pc the http address should be localhost and localhost/sitename is where your present site is  present.

Now ” Dont Click Ok ” but click on “Testing server” which is present in left hand side as in image.

If you get any popups just ignore it.

5.Another window will appear  when you click ” Testing server “

A window will appear like this

A window will appear like this

and on it select the following setting.

server model : PHP MySql

Access :Local/Network

And wait for some time.two more options will come and modify them as follow:

Change to setting like in image and click ok,if any popups come just ignore it

Change to setting like in image and click ok,if any popups come just ignore it

Testing server folder:C:wampwwwsitename

Url Prefix:http://localhost/sitename/

Now click ok.

6.Now your new site will be shown in bottom right side of dream weaver.To add files(php,html etc) right click on the site and select new file.

your site will appear at bottom right side of dream weaver

your site will appear at bottom right side of dream weaver

Right click on sitename and select " new file "to add new file

Right click on sitename and select " new file "to add new file

click on the new file and add a php script like i have done,you can add any php code you want to

click on the new file and add a php script like i have done,you can add any php code you want to

Finally test it in browser,remember you need to have your wamp server running

Finally test it in browser,remember you need to have your wamp server running

Now you should be able to develop and test php applications with Dreamweaver. Remember what you have done is created a new site in dream weaver,so to add any file you have to right click on the sitename and choose “new file”.You can of course cretae other sites(actually as much as you like) just remember to store it in www folder and not inside any used folders in www(which is located in c directory).

If you encounter any errors look at the pictures carefully they are tested on cs4,if the images could  not make you clear please free to ask in comment and i will answer you asap.

Speak Your Mind

*

*
= 3 + 4

CommentLuv badge

More in a (26 of 37 articles)