Thanks Jay, I'll try it. 

I know how to include, but haven't seen any php code yet except what you've
illustrated. Now I have the concept and will do some testing. I appreciate
this list being available to ask specific php questions - and I thank you
for your time and help. 

Much appreciated - 

  ~ John

PS. I unsubscribed and resubscribed so as to get individual responses. Am
now definitely getting more mail than I know what to do with - :-)


-----Original Message-----
From: Jay Blanchard [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 31, 2007 10:12 AM
To: John Moss; Daniel Brown; Robert Cummings
Cc: php-general@lists.php.net
Subject: RE: [PHP] RE: Reaching the PHP mailing list owners

[snip]
Like - what is a
'header'? Everything prior to the <body> statement? I don't think that's
what is meant...
[/snip]

A header/footer is a separate HTML/PHP page that is included with the page
call;

<?php

include("header.html");

....do stuff in the body....

include("footer.html");

?>

All you have to do is create the header and/or footer and include them with
each page. Since the content is typically static in these included files
they are cached and therefore loaded from cache each time they are called
making things very quick.

This is your very first step in creating reusable components for your web
applications. You can see that this will become a very powerful
tool/technique.



--------------------------------------------
My mailbox is spam-free with ChoiceMail, the leader in personal and corporate 
anti-spam solutions. Download your free copy of ChoiceMail from 
www.digiportal.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to