AC1
09-20-2002, 05:35 AM
Hi
Every time I make a change to my standard page header, footer etc, I had to repeat it once per screen. Which was proving very labour intensive.
I have now utilised the PHP include command to include standard headers and footers in all my pages so that I only have to make the change once.
Because of the php code now in my home page I have to call it index.php. It seems to work OK when I tested it.
Is this the correct way to reuse code in PHP and will there be any problems calling my home page index.php?
Any feedback on this would be appreciated.
Cheers
Andy
Every time I make a change to my standard page header, footer etc, I had to repeat it once per screen. Which was proving very labour intensive.
I have now utilised the PHP include command to include standard headers and footers in all my pages so that I only have to make the change once.
Because of the php code now in my home page I have to call it index.php. It seems to work OK when I tested it.
Is this the correct way to reuse code in PHP and will there be any problems calling my home page index.php?
Any feedback on this would be appreciated.
Cheers
Andy
