Hello,
I have a question about how to use include() to include HTML code correctly. Well I am writing PHP page with standard heard for each PHP page.
Option 1
Put all the header code in the header.php file (such as </Meta> <BODY> etc...)
Then in I use include() to include this header.php to all of my PHPfiles and all PHP files need to have its own </BODY> for matching with the corresponding tag in the header.php
Option 2
Only put the necessary code in the header but not the </Meta> <BODY> stuffs.
Then In all of my PHP files I need to put the include() statement within each PHP file's <BODY></BODY>.
I know these 2 methods are working fine. But please advise which one is the BEST and most common use. Thanks