Things you want to know about websites

 

Define a php/mysql site in Dreamweaver

In this guide i will tell you how to define a php/mysql based web site in dreamweaver.

If you want to define a simple html website, see my guide to define a simple html site in dreamweaver.

If you don't have dreamweaver and want to get information about it, then go to adobe's dreamweaver site.

1. I assume you have dreamweaver installed on your computer. Run the software. Click Site menu and select New site.

dreamweaver php mysql site

2. In my guide to define a simple html site i used the basic tab but now just for a change and to give you both views, i will use the advanced tab. So, select Advanced tab.

dreamweaver php mysql site

3. Select the category Local info and file in the following information.

(a). The name of your web site. Enter any name you like.

(b). In the local root folder field fill the directory where you want your files to be stored.

(c). In the field Default images folder, give the directory where you want to store your images. If you want, leave it blank to set it up later.

(d). To choose between Relative to document or Relative to site root, first see the difference between them.

Relative to site root means that all the files will be located from the main directory of your site called the root directory.

For example a file name 'file.html' present in the root directory will be located as rootdirectory/file.html. An image 'image.gif' present in the images directory in the root directory will be located as rootdirectory/images/image.gif.

Relative to document means that all files will be located from the current directory or current location of the requesting file.

For example, assume that there is a parent directory named 'parent'. This parent directory has two folders named html and images.

Now, lets say we are in the files directory and want to locate an image 'image.gif' present in the images directory, then our address will be ../images/image.gif. Here ../ means go back one directory level. If we want to locate a file 'file.html' present in the same directory, then our address will be just 'file.html'.

I prefer the use of Relative to document links, you can use the other one if you like.

(e). Give the url address of you site in the Http address field. If you haven't registered a name, leave it blank.

4. Select the category Remote info and enter the following information.

(a). If you don't want to use dreamweaver's uploading capability, select None from the Access drop down menu.

dreamweaver php mysql site

You can use filezilla to upload your files, for which you can see my guide to upload files using Filezilla.

(b). If you do want to use dreamweaver's uploading capability, select Ftp from the Access menu and enter your Host name, Site directory, User Name and Password. This information is provided by your web hosting provider.

dreamweaver php mysql site

If you're not sure about your Site directory just enter a forward slash /, and then dreamweaver will show you all sub folders. You can find your site directory's name by logging into your web hosting account. Then check your ftp setting and see folder access.

(c). Check Use passive mode and click Test.If everything is fine you will pass the connection test.

(d). If you want to upload the files on a server connected to you on a locan network, then select local/network from the Access menu and give the main directory name of your files on the server.

5. Now select the category Testing server. Select Php/mysql from the Server model drop down menu. The Access option defines where your testing server is located at.

dreamweaver php mysql site

(a). If you want to use your web host's server as a testing server, select Ftp and then fill the ftp connection information. Note that your web host must have enabled php/mysql parsing for this to work.

(b). If you have setup a testing server on your own machine or on a networked computer, then select local/network and give the directory address.

That's it. You have setup the required infromation. Click Done and you will see your new site listed in the Files panel.

dreamweaver php mysql site


Bookmark or Add to Favourites

Related:

Define a simple html site in Dreamweaver
Upload files using Filezilla

Link to this page :

Copy and paste the following code in an html document to link to this page,