local testing server for dreamweaver cs4

5 posts by 4 authors in: Forums > CMS Builder
Last Post: May 29, 2009   (RSS)

Re: [willydoit] local testing server for dreamweaver cs4

By ross - May 29, 2009

Hi there.

Thanks for the cross post. You'll get much more traffic here. One thing I just thought of though, perhaps you could give WAMP a try. It's really easy to use. Just an installer and you are ready to go.

I don't know what Dreamweaver will think of it though. I am thinking it would be fairly easy to setup and try out even if it doesn't end up working.

Keep us up to date with how you are making out :).
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Consulting
consulting@interactivetools.com

Hire me! Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/

Re: [willydoit] local testing server for dreamweaver cs4

By Dave - May 29, 2009

Hi willydoit.

We use absolute filepaths on the generated code to make sure it works whatever directory you put it in on the server, but you can actually use relative paths.

So for example, on my local PC if I generate a viewer I get a require_once line like this:
require_once "C:/wamp/www/cmsAdmin/lib/viewer_functions.php";

But if I know my viewer page is in the root of the website (eg: http://localhost/test_list.php) and /cmsAdmin/ is off the root as well (typical setup) then I can shorten it to this:
require_once "cmsAdmin/lib/viewer_functions.php";

As long as your path doesn't start with / or C:/ it will look _under_ the directory the viewer is in. If you have the viewer in a subdirectory you can go up one directory like with "..", like this:
require_once "../cmsAdmin/lib/viewer_functions.php";

Let me know if that makes sense and give it a try.
Dave Edis - Senior Developer
interactivetools.com

Re: [willydoit] local testing server for dreamweaver cs4

By Damon - May 29, 2009

Hi,


I use WAMP for my local server, but it is basically the same as XAMPP.

Yes, you need to install CMS Builder onto your local server.

This way I make it quick and easy to make changes in the templates in my code editor program and then open the browser and refresh to see the changes.

Couple of things to keep in mind:
The path to the viewer_functions.php file that you include on all your site pages will most likely be different on your host than your own internal test server.

require_once "C:/wamp/www/example.com/cmsAdmin/lib/viewer_functions.php";

Also, depending how you setup your internal server, the URLs may be different too.

Home server: http://localhost/site/cmsAdmin/admin.php
Hosted site: http://www.mysite.com/cmsAdmin/admin.php

Most of the time when I'm setting up a site, I work directly on the site so I don't have to worry about file paths or URLs changing later.

Hope this helps.
Cheers,
Damon Edis - interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Damon] local testing server for dreamweaver cs4

By willydoit - May 29, 2009

Hi GUys,

Thanks a lot for the help, looking at the potential issues and with the paths I think I will continue just uploading all my pages to the test server after each change, that way I dont have to keep altering paths etc when wanting to test live, at least until I get more dreamweaver experience under my belt.