I am putting together a website using php include and I am finding it difficult to find a way to include the title and meta tags from each include file since the page I am including them on already has, and needs, a header tag for java pop up menu. I found what seems to be a solution but it only works for one include page.
My php is for multiple pages so how could I do that?
Thanks in advance.
Dave
Code:
<html> <head> <?php ob_start(); ob_implicit_flush(0); $incPage = "folders/my_include.php"; include($incPage); $pageContents = ob_get_contents(); ob_end_clean(); ?> <title><?php print($pagetitle); ?></title> </head> <body> <?php print $pageContents; ?> </body> </html>
My php is for multiple pages so how could I do that?
Thanks in advance.
Dave
Comment