Re: [PHP] PHP includes

2009-03-09 Thread Nathan Rixham
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

Re: [PHP] PHP includes

2009-03-09 Thread Virgilio Quilario
> 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

Re: [PHP] PHP includes

2009-03-09 Thread tedd
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

Re: [PHP] PHP includes

2009-03-08 Thread George Larson
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

Re: [PHP] PHP includes

2009-03-08 Thread Sudheer Satyanarayana
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

[PHP] PHP includes

2009-03-08 Thread Gary
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 concerns are wi

RE: [PHP] PHP Includes and Echoes in Head Sections and Search Engines

2004-01-15 Thread Arthur Pelkey
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

Re: [PHP] PHP Includes and Echoes in Head Sections and Search Engines

2004-01-15 Thread CPT John W. Holmes
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

[PHP] PHP Includes and Echoes in Head Sections and Search Engines

2004-01-15 Thread Freedomware
I'm having a blast with PHP includes and echo functions; I never dreamed they could be so simple and effective. But I have a couple questions relating to head sections and search engines. Consider the following html code: http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> http://www.w3.

Re: [PHP] PHP Includes versus sloppy Dreamweaver code and split elements

2004-01-15 Thread Freedomware
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

Re: [PHP] PHP Includes versus sloppy Dreamweaver code and split elements

2004-01-15 Thread Marek Kilimajer
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:

[PHP] PHP Includes versus sloppy Dreamweaver code and split elements

2004-01-15 Thread Freedomware
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: and it seems to w

Re: Re[2]: [PHP] PHP includes without access to the default directory

2002-12-07 Thread Gundamn
thank you -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] PHP includes without access to the default directory

2002-12-06 Thread Tom Rogers
Hi, Saturday, December 7, 2002, 7:15:38 AM, you wrote: >> ini_set G> ("include_path","/path/to/local/includes:"ini_get("include_path")); >> >> Then no matter what directory you are in you can just include("filename"); >> >> -- >> regards, >> Tom >> G> Thank you. This should work, but I have one

Re: [PHP] PHP includes without access to the default directory

2002-12-06 Thread Gundamn
"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 >

Re: [PHP] PHP includes without access to the default directory

2002-12-05 Thread Morgan Hughes
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

[PHP] PHP includes without access to the default directory

2002-12-05 Thread Gundamn
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 the filename)? Thank you in advance. --

Re: [PHP] php includes === Dreamweaver library items

2001-09-07 Thread George Whiffen
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 >

RE: [PHP] php includes === Dreamweaver library items

2001-09-06 Thread Robert V. Zwink
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

Re: [PHP] php includes === Dreamweaver library items

2001-09-06 Thread George Whiffen
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

RE: [PHP] php includes === Dreamweaver library items

2001-09-05 Thread Robert V. Zwink
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:

Re: [PHP] php includes === Dreamweaver library items

2001-09-05 Thread George Whiffen
gt; http://www.phpbuilder.com/columns/sascha19990316.php3 > for more information. > > I hope this helps. > > Robert Zwink > http://www.zwink.net/daid.php > > -Original Message- > From: George Whiffen [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, September 0

RE: [PHP] php includes === Dreamweaver library items

2001-09-05 Thread Robert V. Zwink
lumns/sascha19990316.php3 for more information. I hope this helps. Robert Zwink http://www.zwink.net/daid.php -Original Message- From: George Whiffen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 05, 2001 10:40 AM To: [EMAIL PROTECTED] Subject: [PHP] php includes === Dreamweaver

[PHP] php includes === Dreamweaver library items

2001-09-05 Thread George Whiffen
Hi, Has anyone experience of using Dreamweaver library item files (.lbi)s as php includes? We've got a standard header and footer to go across all pages on a site with the navigation etc. We want both the designers, (using Dreamweaver), and the php programmers to have access to these includes,