Part1: What do I need to setup a server on my computer?
For this to work you will need to have the software below installed.
-
Dreamweaver 8, this is what I used in the tutorial. I am not sure if you can do this on the previous versions.
-
Windows XP Professional
-
(IIS) Internet Information Services has to be installed.
Part2: Preparing my computer.
If you are positive that you installed IIS (Internet Information Services) you can skip this step. To install IIS you will need the windows XP Pro CD. Put the CD Rom in to the tray and it will auto run. Click on Install Optional Windows components.

When you do that it will launch the Windows Components Wizard scroll down until you see the Internet Information Services
Click on the Next button and follow the instruction to install it.
Now, click on Start Control Panel Administrative Tools now double click on the Internet Information Services icon.
Right click on Default Web Site click New Virtual Directory
Click Next and you will see the Alias window, this name will represent the name of the folder that all your sites will be stored in. So when you preview your site it will load up as http://localhost/myfoldername/mysite
For the name I would use some thing general, like mysites, mywebpages.
After that, click Next, The Web Site Content Directory window will come up. Click Browse, and Browse to the C:\ Drive, or what ever drive number you are using. Create a Folder called, Inetpub and inside that folder create another folder called wwwroot, Inside the wwwroot folder you will create another folder called phptesting, or what ever your site is. Here is where you will upload the index and images files.
Part3: Start up Dreamweaver.
Start up Dreamweaver and click Site Manage Sites..
and click New Site. Click on the Advanced Tab and you will see the window below. Click on Local Info and fill in the information according to the image.
*I created another folder inside the phptesting folder called images
Next click on, Testing Server. If you see a message click ok to continue. Fill in the information according to the image below.
Next click on Site Map Layout, in the Home Page area type in the directory when you want the index file to be. C:\Inetpub\wwwroot\phptesting\index.php
The message below will come up click ok.
Next click ok and Done.
Part4: Testing it out.
Click File New... and click on Dynamic Page PHP and click Create.
After that click on the Windows tab and make sure Databases is checked.
Click on the Shown in the databases tab and click on MySQL Connection.
With that the window below will come up. Fill in the information shown below. You can create your own.
After that click ok.
Save the page that you are on as, the index.php. Create another php pages and call it news.php or something. We will add some php to the page and see if it works. Click on the News page, write something, and save it. Click back to the index.php page and add the php script below
<?php include("news.php"); ?>
in between the body tags, it will look like the code below
<body>
<?php include("news.php"); ?>
</body>
You should see it working when ever you change something in the News.php files it will show up on the index.php files.
Finished:
Well that is it. Hope it is what you expected. If you have, any questions or comments feel free to e-mail me or leave a message on the forum. If you are having a hard time with the tutorial email me and I will try to help.
This Tutorial was Created By Mark
© 2007 pixeldigest.com. All Rights Reserved. |