Re: PHP includes
| From: | Gary | Date: | Mon, 09 Mar 2009 14:55:37 +0000 |
| Subject: | Re: PHP includes | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-289664@lists.php.net to get a copy of this message | ||
Thank you to everybody that replied...but it almost seems it is making extra
work.
I can understand using an include for a menu, since they tend to change
often and it is on every page, but the normal content I am not understanding
the benefit. If I have a page that has unique content on it, that is to say
no other page has this content, why would I want to create a separate file
to be included on the page, why would I not simple put the content directly
on the page itself?
What is the best type of file to be used as an include (.txt, .php).
Thanks again for all your help.
Gary
""Gary"" <gwpaul@ptd.net> wrote in message
news:8A.64.51087.33BF3B94@pb1.pair.com...
> 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 with SEO and if the search engines and the bots
> can read the page if it is made completely on includes?
>
> Any and all comments would be appreciated.
>
> Gary
>