Virgilio Quilario wrote:
I'm working on learning php and have been toying with includes, and I am
trying to figure the advantages/disadvantages to using them.
I know that using them eliminates the need to "put" the files once altered
as with a template, however, is that the only advantage.
My p
> I'm working on learning php and have been toying with includes, and I am
> trying to figure the advantages/disadvantages to using them.
>
> I know that using them eliminates the need to "put" the files once altered
> as with a template, however, is that the only advantage.
>
> My particular conce
At 1:06 PM -0400 3/8/09, Gary wrote:
I'm working on learning php and have been toying with includes, and I am
trying to figure the advantages/disadvantages to using them.
I know that using them eliminates the need to "put" the files once altered
as with a template, however, is that the only adva
Right. There are several advantages to using included files. You can
write routines that you're going to use repeatedly and just include the file
with the code, instead of re-inventing the wheel, as they say.
Consistency is another advantage. So, if you design your header, sidebar
and footer a
Gary wrote:
I'm working on learning php and have been toying with includes, and I am
trying to figure the advantages/disadvantages to using them.
I know that using them eliminates the need to "put" the files once altered
as with a template, however, is that the only advantage.
My particular
You are defining the vars after the header/title has already been
processed, put it before the head.php, and it should work
-Original Message-
From: Freedomware [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 15, 2004 3:54 PM
To: [EMAIL PROTECTED]
Subject: [PHP] PHP Includes and Echoes
From: "Freedomware" <[EMAIL PROTECTED]>
> I discovered that includes will apparently work just about anywhere, but
> echo functions apparently don't work with the tag and meta tags;
> at least, I can't see the word "Alaska" in those locations when I click
> View Source in my browser.
Look back o
Marek Kilimajer wrote:
Sure you can, but I would not open a tag in one file, and close the tag
in another. This makes code very unreadable, the errors are hard to find
and also the code is not reusable.
Hm That's a good point.
Maybe I'll take another look at layers, as the table design
Freedomware wrote:
My first question is really trivial, but I noticed that Dreamweaver
likes to display my PHP includes code like this...
When I do a search and replace function, it often jumps onto another
element's line, like this:
I changed the code to this:
"Tom Rogers" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> Hi,
>
> Friday, December 6, 2002, 11:06:36 AM, you wrote:
> G> I have a hosted account. As such, I am unable to use the default
location
> G> for files when used with the include command. So could somebody tell me
how
>
On Thu, 5 Dec 2002, Gundamn wrote:
> I have a hosted account. As such, I am unable to use the default location
> for files when used with the include command. So could somebody tell me how
> I can either make it go to a different directory, or to link to something
> (and how to add the variable as
cuments with EditPad, and the
> site is updated the same way Dreamweaver would have updated the pages.
>
> Robert V. Zwink
> http://www.zwink.net/daid.php
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of George Whiffen
>
nk.net/daid.php
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of George Whiffen
Sent: Thursday, September 06, 2001 1:20 PM
To: Robert V. Zwink
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] php includes === Dreamweaver library items
Robert,
Your time and trouble in go
t; a templating system, and I'm sure there are countless others. Templates
> seem to be adopted by experieced programmers more often than not. I haven't
> even mentioned the advantages of CachedFastTemplate which is reason alone to
> use templates.
>
> If you decide to try i
dvantages of CachedFastTemplate which is reason alone to
use templates.
If you decide to try it out, I'm happy to relay my experiences.
Robert V. Zwink
http://www.zwink.net/daid.php
-Original Message-
From: George Whiffen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 05, 2001 2:
Robert,
Thanks for the suggestions, but...
a) I do want to do this and I do think I can.
The big problem is not the templating, php is pretty damn good at that already.
It's handling the header/footer html which appears on every page.
On the one hand we only want one master copy so there's onl
I dont' think you can do this, or that you would want to do this. Library
items in Dreamweaver (as I understand it) are snippets of HTML that
Dreamweaver marks as updatable accross the entire site. They are not
"included" into the HTML, dreamweaver keeps track of where they need to go,
then upda
17 matches
Mail list logo