This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > August 2004 > php include function





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author php include function
kbridges

2004-08-26, 12:21 pm

I'm a more than competent developer. I have been _required_ by a client to set
up several of the sites I have designed, to be editable in DreamweaverMX. I
am using the PHP include function. I would like for someone to educate me on
how to get dreamweaver to process the includes so that my client can edit the
pages as they appear on the website.

I began by trying this on the remote machine ... I then installed
apache/php/mysql on the local machine and tried it that way. I did some
searching and found a bunch on regular ssi stuff and some 3rd party extensions
I will not pay for. Am I wasting my time?

Second question, I write xhtml compliant code and supply validation links on
the pages I write. Can I force dreamweaver to ensure the clients new changes
are going to be xhtml compliant?

Sorry if I sound a bit on edge ... I don't believe this should be difficult
and am extraordinarily frustrated.

Alan

2004-08-26, 12:21 pm

what is the problem with editing them in dreamweaver?
What is or isn't happening?

and- a url to an example page please.

as a guess- Is design view blank?
If yes- are the included files JUST the correct syntax for where they are
included, or are they complete html docs with their own head and body tags
(making for multiple body tags in the assembled document)?



> I would like for someone to educate me on
> how to get dreamweaver to process the includes so that my client can edit the
> pages as they appear on the website.


kbridges

2004-08-26, 12:21 pm

You've got to be kidding me.

<?php
... PHP code here;
include ("includes/header.php");
?>

doesn't work ... but

<?php include("includes/header.php"); ?>

and

<?php
include("includes/header.php");
?>

works?

I'm trying really hard not to sound sarcastic and annoyed. It's a very
difficult thing to do.

Could someone please answer my question about xhtml compliance. I'm scared to
death of letting my client use dreamweaver.

kbridges

2004-08-26, 12:21 pm

Thanks Alan ...I know my problems are stemming from not spending enough time
learning dreamweaver. I figured out my problem with the includes and am now
looking for some information on forcing xhtml compliance through dreamweaver?

Alan

2004-08-26, 12:21 pm

if an existing page has an xhtml prolog and doctype, dreamweaver will use
xhtml tag styles.

if they make a new page, and put in a checkmark in xhtml compliant, the new
page will be.

be aware however- that the client can edit anything anyway they wish to
using dreamweaver... They can intentionally or unintentionally make good
or bad code.

> I figured out my problem with the includes and am now
> looking for some information on forcing xhtml compliance through dreamweaver?


kbridges

2004-08-26, 12:21 pm

Sorry to flood everyones email with this thread ... it seems that dreamweaver is actually pretty good at xhtml compliance. I solved my problems and am starting to feel better!
Josh Johnson

2004-08-26, 12:21 pm

kbridges wrote:
> Could someone please answer my question about xhtml compliance. I'm scared to
> death of letting my client use dreamweaver.


It sounds like you got your xhtml compliance working, but I did want to
note that you shouldn't be scared to death of letting your client use
dreamweaver. Instead you should be scared to death of letting a
non-professional web developer make potentially catastrophic changes to
your site. When presented with requests like this, I think your better
option would be to build a maintenance back-end to the site, so content
is stored in a database, and the client could make changes to the
content via a web interface, rather than tweaking code in the page
that's being served. Alternatively, if your client is familiar with
Dreamweaver, another option would be to set up the site using
Contribute, so the client still gets a DW-style feel, but without all
the worry of breaking the site.

Just my 2 cents,

Josh
kbridges

2004-08-26, 12:21 pm

Thanks Josh ... normally that is the approach I take. In this instance the
client hires "web developers" to come in and perform work through dreamWeaver.
dreamWeaver does give them complete control over the site and that can be
dangerous.

Overall, I am becoming much happier with dreamWeaver ... It tied into the site
extremely well once I solved my initial problems and seems to understand my
coding style (xhtml & css standards based). I've made a few changes through
the graphical interface *shiver* and have not been dissapointed with the
results. Personally, I'm still a homesite+ kind of guy, but using dreamWeaver
isn't as bad as I thought.

Josh Johnson

2004-08-26, 12:22 pm

kbridges wrote:
> Overall, I am becoming much happier with dreamWeaver ... It tied into the site
> extremely well once I solved my initial problems and seems to understand my
> coding style (xhtml & css standards based). I've made a few changes through
> the graphical interface *shiver* and have not been dissapointed with the
> results. Personally, I'm still a homesite+ kind of guy, but using dreamWeaver
> isn't as bad as I thought.


Yeah, one of the nice things I like about dreamweaver is it's ability to
scale with the expertise of the user. When I started out, I did all my
work in the design window, and on occasion checked to see what was being
generated in the source window. Now, as I've become a more advanced, I
live in the source window (ala Homesite), but still occasionally use the
design window as a method for quickly navigating through the source code.

- Josh
Sponsored Links


Copyright 2003 - 2009 forum4designers.com  Software forum  Computer Hardware reviews