Re: help with html through php
| From: | Pete | Date: | Sun, 21 Nov 2004 16:04:19 +0000 |
| Subject: | Re: help with html through php | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-202600@lists.php.net to get a copy of this message | ||
In message <41A09F2F.8010008@raditha.com>, Raditha Dissanayake
<jabber@raditha.com> writes
>Todd Alexander wrote:
>
>>Hello all,
>>I am a complete newbie to php so apologies for what I'm sure is a
>>simple/dumb question. I want to use php to include another html doc in
>>an existing set of documents. In other words "123.html" will use php to
>>call on "abc.html" so I can make changes to abc.html and have it update
>>on all my pages.
>>
>>
>You have struck upon a pretty standard technique you will need to look
>at the include() or require() functions to persue this further. There is
>a subtle difference between the two but when you are getting started the
>difference does not really matter all that much. On most webservers you
>will need to name your 123 file not as 123.html but as 123.php or
>123.phtml abc.html can continue to be abc.html
>
>>
>>Again I realize this is a complete newbie question but I appreciate any
>>help you have.
>>
>>Todd
A further point (since you are newbie <G>) is to remember that abc.html
will not normally be a complete page on it's own - it will only have the
parts of the final page that you actually want to include, not all the
<HEAD>... <BODY> stuff...
--
Pete Clark
http://www.hotcosta.com
http://www.spanishholidaybookings.com