close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

moving from static to php site

Thread began 6/18/2010 12:07 pm by jane405795 | Last modified 6/30/2010 5:03 pm by Eric Mittman | 1410 views | 6 replies |

jane405795

moving from static to php site

I have defined a DW 4 website using SiteAssist to start and want to now incorporate the dynamic pages, I am looking for support in how to leap from a static site to a dynamic site using some of web assists PHP extentions like search for Boss, My client wants to have an internal search box to search within the site, a calendar and a form and email.
Also My client wants to edit in any browser so I think I will need Power CMS.

I have looked at the tutorials and demos an each product but I am not sure where to get help in setting up php files with in my static site. I am a designer and can work with css and dw but I am not a developer/ programmer. I think I need to set up a local server and have found support to do that but I do not know how to set up the dynamic data files or where to find support for that?
Thank you in advance.

Sign in to reply to this post

neilo

Hi Jane,

The important bit is to have your testing-server set up and working, and then the rest is fairly straight forward.

You say you have found support to set up the testing-server, so just for your info it might be useful to cast an eye over a start-to-finish example of what needs to be done to start creating a dynamic site in DreamWeaver. I wrote a reply to someone else Here which may (or may not) be useful to you.

To make a static (html) page dynamic (php, if you're using WebAssist extensions) you just give your page the .php extension - rather than .htm or .html . This simply lets the server/browser know how to process the pages. You can save an existing html page - say index.html - as index.php and it becomes a dynamic page, ready for use with WebAssist's extensions. New pages you would create by Dreamweaver Menu > File > New > Blank Page > PHP.

Once you have your testing-server up and running you will be able to preview the results as if the site were on a remote php enabled server. An easy, fully featured solution is to download XAMPP - this comes with mySql (and phpMyAdmin to administrate it with) and is easy to set-up.

Sign in to reply to this post

jane405795

moving from ststic to a PHP dynamic Site mac user

Thanks for the reply. I am a mac user the example for step by step directions is for windows/pc.
I have installed MAMP, and I am working in OX 10.6.3 DW 4.

My html defined site already defined, It sounds like I need to define a NEW site in DW as a PHP. and copy my html files into it the PHP site. Once I do that I should and change the ext from HTML to PHP, do I do this to all pages even the static pages that do not have dynamic data? Once I do all that should I then install and apply the php web assist exts that I need?

Sign in to reply to this post

Eric Mittman

You are correct, you would want to create a new DW site and specify it as a php site. You would then copy over the pages to your new local site to begin working on it. You only need to update pages to be .php if you would like to add functionality to them. It will not hurt to have the static pages saved with a .php extension though.

Sign in to reply to this post

jane405795

PHP Site static to dynamic

Hi,
I installed and set up MAMP I defined a new site with the local root folder in Applications/MAMP/htdocs and the testing server Model as PHP MySQL.
I copied my html site into the htdocs. How do I now make all the pages PHP?
I already have this site made up with HTML and I am using a DWT template for all my inside pages and now I want to add some dynamic extensions like Search for boss and a Calendar.
I am confused how to use my template as PHP?
Can I turn my template into a PHP template? then copy all my HTML into it making it a PHP? Or do I make a blank PHP page and copy everything into that? (no longer using my template)?
I am not sure now how to copy the info most efficiently.
Also I am confused about setting up a database do I need one for Search for Boss or a Calendar?
I am on a mac OS 10.6.3
thanks

Sign in to reply to this post

jane405795

html saved as .php

Hi, I have re-saved all my pages to html to .php re-linked each page to the new php ext.
Now I can not view any pages in my local server, I get a message saying; file not found what should firefox do with this file etc. All I did was re-name the .html to .php. in my new php defined site.
the local server worked fine and I was able to view all in local server before I renamed the files to php.

btw: I also resaved my dwt with the php ext as siteassistpro_template.dwt.php
please help! I am hoping to re-solve this quickly so I can add some dynamic ext.

also: menu writer did not let me change the top level links from html to php and
now I do not even see the menu editor icon how did that happen?
thanks for your help

Sign in to reply to this post

Eric Mittman

Before you will be able to view the php pages in your site you must ensure that you local server is setup to work with php and that you are serving up the files properly. You should test this out by making a single php page that has only this line of code in it:

php:
<?php phpinfo(); ?>



Save this page with a .php extension then setup a DW site including the local info and the testing server info. You should be able to browse to this page and see the info about your php setup. If you get any other result then you will need to check the configuration of your local testing server. Once you are able to view php pages you should not have any problems converting over your existing pages.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...