<body><script type="text/javascript"> function setAttributeOnload(object, attribute, val) { if(window.addEventListener) { window.addEventListener('load', function(){ object[attribute] = val; }, false); } else { window.attachEvent('onload', function(){ object[attribute] = val; }); } } </script> <div id="navbar-iframe-container"></div> <script type="text/javascript" src="https://apis.google.com/js/platform.js"></script> <script type="text/javascript"> gapi.load("gapi.iframes:gapi.iframes.style.bubble", function() { if (gapi.iframes && gapi.iframes.getContext) { gapi.iframes.getContext().openChild({ url: 'https://www.blogger.com/navbar.g?targetBlogID\x3d3281081014634721500\x26blogName\x3dNetDock\x26publishMode\x3dPUBLISH_MODE_BLOGSPOT\x26navbarType\x3dBLUE\x26layoutType\x3dCLASSIC\x26searchRoot\x3dhttps://netdock.blogspot.com/search\x26blogLocale\x3den_US\x26v\x3d2\x26homepageUrl\x3dhttps://netdock.blogspot.com/\x26vt\x3d-2366857695244708941', where: document.getElementById("navbar-iframe-container"), id: "navbar-iframe" }); } }); </script>

5 steps to connecting Dreamweaver to a Local Server

Friday, April 13, 2007 by Glenndavid



When it comes to building a website it is hard to stay un-interactive, as soon as you want to insert a contact-form, or any php-page, you have to start working with servers.
Offcourse testing this isn't exactly the simplest of things to to, as you have to work with external programs to simulate how the server would react in that particular situation.

Today we will be illustrating in 5 steps how to connect Dreamweaver to an external server with the help of MAMP (or WAMP on a mac).

Step 1: Getting the Servers "online"
If you are working on a Windows you want to instal MAMP
The Mac folks can instal WAMP.

Step 2: Getting The Databases Right
Open phpMyAdmin, the windows-users can do this by clicking on the WAMP icon bottom-right of the screen, the mac-user can open the dashboard or the MAMP control panel and click open start page.
Now we are going to create a database called registration and a table called users, and it should look like this:



setting up a MySql database
Step 3: Defining the site in Dreamweaver
in the splashpage: create new > Dreamweaver Site or Manage Sites > New (in the file manager.
Then Advanced.

Windows:
        Local info: Set a root folder
        Remote info: None
        Testing Server:     
        PHP/MySQL
        Local Network
        Testing Server Folder: Windows—C:WAMP/WWW


On a Mac it's a little more complicated, but taking it step by step should get the connection going in no time



Macintosh:
        Open MAMP from your applications folder
        Click on Preferences > Ports
        Select Default Ports
        Open Dreamweaver and define the site
        Local info:
        Set a root folder
        Set http address to http://localhost

        Remote info:     
            Select Local/Network
            Set http address to http://localhost
            Find the path Macintosh HD:Applications:MAMP:htdocs:

        Testing Server:     
            PHP/MySQL
            Local Network: none
            Testing Server Folder: Macintosh HD:Applications:MAMP:htdocs:


Step 4: Connecting Dreamweaver to the MySql databases
Back into Dreamweaver we go, we go for File > New > Dynamic Page > PHP.


Once we are in our new PHP-page, we take a look at the Applications-window, click on the databases-tab > +MySql Connection and fil in the information that is required!


Step 5: oops, no step 5, that was it!


greets



Glenn


Tags: , , , , , ,



Technorati Tags: , , , , , , ,

Labels: ,

about


A little something about you, the author. Nothing lengthy, just an overview.

Also a link to profile may show up here.
  • mail me @

search

Subscribe2Feeds

DreamRoll

recent posts

recent comments

archives

admin