For Programmers: Free Programming Magazines  


Home > Archive > PHP Programming > January 2005 > similar pages ...









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 similar pages ...
WindAndWaves

2005-01-30, 8:55 pm

Hi Gurus

I am sorry to ask so many questions, I am just really excited about PHP. I LOVE IT.

I have about twenty pages now, all with various scripts. All of them are different but the header and the footer are always similar

eg.

.....<HTML>...<HEAD>..<BODY>.....<TD>

{content}

</TD>end of file stuff</html>

Should I put the front and the end in a special function so that I can change all of them at once?

TIA

- Nicolaas


Geoff Berrow

2005-01-30, 8:55 pm

I noticed that Message-ID: <rYaLd.13108$mo2.1019514@news.xtra.co.nz>
from WindAndWaves contained the following:

>Should I put the front and the end in a special function so that I can change all of them at once?


Use includes.

--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
WindAndWaves

2005-01-30, 8:55 pm


"Geoff Berrow" <blthecat@ckdog.co.uk> wrote in message news:t1gqv0d416pj33tljuq2n6spprs8ud0ava@
4ax.com...
> I noticed that Message-ID: <rYaLd.13108$mo2.1019514@news.xtra.co.nz>
> from WindAndWaves contained the following:
>
>
> Use includes.
>



Are there any drawbacks on using them? or things I should watch for before I change the whole thing?


Geoff Berrow

2005-01-30, 8:55 pm

I noticed that Message-ID: <cwbLd.13120$mo2.1027401@news.xtra.co.nz>
from WindAndWaves contained the following:

>
>
>Are there any drawbacks on using them? or things I should watch for before I change the whole thing?


http://uk.php.net/manual/en/function.include.php

--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2010 codecomments.com