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

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

HTML to PHP newbie question

Thread began 12/10/2014 11:08 am by paulmgillard360368 | Last modified 12/17/2014 3:15 pm by paulmgillard360368 | 622 views | 11 replies |

paulmgillard360368

HTML to PHP newbie question

Hi WebAssist - I've been a website designer since 1996 using DW. I've recently purchased SuperSuite because I want to offer techie solutions to my clients. So recently I have designed another site in HTML using many products from the company ProjectSeven. I've used their stuff for years and am well versed in editing their CSS files. I always use their menu systems and have worked usually with one template across most sites I make. Recently I learnt how to make editable optional regions which I had not used before. The latest site I am designing will need to have a PayPal Donate button, a Contact Form, a CMS and a very basic shop for under three items of merchandise (initially). So at the moment I have made it in HTML and have access to a server that has MySQL and is PHP enabled since it currently runs a WP site and has Joomla on it.

QUESTION: So, to get going on a PHP version of this site (since I guess I am going to have to convert it) ..how best to set about doing this please?
I'd also be interested to hear from other folk who have used P7 extensions and how they got on with making PHP sites using WebAssist SW. For example - did the menus end up being converted to an 'include'? Was this successful?

Sign in to reply to this post

Jason ByrnesWebAssist

to convert the site to PHP, you will need to rename each of the HML files to change the extension from .htm to .php. that is really the only difference between a php file and an HTML file, the extension.

using the .php extension tells the php processor to look at the file, and if it finds any php code in it, process that code before sending the result to the client browser.

of course you will also need to edit links to the file so the links also use the .php extension.

Sign in to reply to this post

paulmgillard360368

Thanks Jason. That will get me off to a good start :-)

Having seen a tutorial about how to make a theme from a page or template, enabling me to forget the template mentality seemed very good useful.

I've not been a big fan of templates, since they never seemed to be very flexible - if for example you wanted to have one menu system running and a few layouts (eg: 3 columns or 4 columns) in different places.

Once I have converted the extension names, is it a good idea to send you the link and discuss whether or not to make a theme please?

The only bit I'm nervous about at this point is whether or not the P7 menus will still work, and at what point will bits of the site need to become 'includes' and what the implications of that will be.. If I make a Theme - a bit later on, will the menus be converted to 'includes' or library items?

Sign in to reply to this post

Jason ByrnesWebAssist

The menus don't need to be converted to includes or library items if you don't want to, using includes is entirely up to you.

I would suggest creating a test site and getting familiar with framework builder in a test environment before trying to using it in a live site.

I think just experimenting with it in a test environment should answer your questions.

Sign in to reply to this post

paulmgillard360368

Thanks for that Jason.

Sign in to reply to this post

paulmgillard360368

HTML to PHP converted

I've managed to do that and it all seems to work OK.

The preview in browser functionality has disappeared however.

DW says: "Dynamically-related files cannot be discovered because a testing server is not defined. Setup"

*I have already downloaded MAMP Pro and have a few weeks of that running for free.
If I want to preview local files in my browser I've got to set up a local testing server in DW don't I?

Server Name: Local MAMP - Connect using: Local / Network - Server Folder: /Applications/MAMP PRO
This is what I set up but it's not working properly yet. It also asks for a URL. Shall I add one for the site?


I'm going to make the Donate button work now, with the Add PayPal button (FreeTools).


I also need to add cookies to the first page. Google gives out some code for this: https://www.cookiechoices.org/

If I use your tool to make them will it give me roughly the same code?

Sign in to reply to this post

Jason ByrnesWebAssist

see the following tutorial for details on setting up the site for dynamic development:
http://www.webassist.com/tutorials/Define-a-dynamic-site-in-CS5

the cookie code used by the web assist software will be a bit different, there are options for creating the cookie using PHP code or using javascript.

Sign in to reply to this post

paulmgillard360368

OK

Many thanks Jason. That's very helpful. I've a few things to explore now!

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

Sign in to reply to this post

paulmgillard360368

Setting up a testing server (MAMP pro) ...FYI

Hi Jason

I just wanted to let you know that after a few efforts, I managed to configure this and feel a great sense of achievement. I have used MAMP pro and have found its interface to be very good indeed.

Depending on how you feel about doing this - you may like to update the screenshots on your page explaining where you add data. This is because the whole UI is different in MAMP pro to the windows you showed in your tutorial page.

*I think that the licence for MAMP pro will be well worth the money - since clarity is key for those of us who aren't very techie (like me). It's been very well designed, I think.

One glitch that I came across while previewing (using the testing server) ..was a file permissions problem for a couple of pictures. These didn't show up in the browser even though I had them in the right folder (assets) - so there shouldn't have been a problem. The error was a 403 -

"Forbidden
You don't have permission to access /sitename/Assets/Images/library/filename.gif on this server."

I went to the folder for the site within the MAMP / htdocs folder and setup permissions to all be the same. The next time I made a preview, these pictures showed up on the page OK.

Pictures might have odd permissions set, so it's a point worth remembering.

Sign in to reply to this post
loading

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...