I saw a post a few weeks back and can not find it. I went through 7 weeks of messages. It had an off title. When including files on a php page how do you get the correct and different page information to display. Example: Common files, header.php, leftbar.php, rightbar.php, footer.php. Variable page is always main content. How do you get the meta tags, page title etc for the main content to be displayed for SE purposes? TIA,
Well it depends on how you implement it. If header.php looks something like: echo <<<HEREDOC <html> <head> <title>$pageTitle</title> </head> <body> <h1>$pageHeader</h1> HEREDOC; PHP: Then you would populate those variables like: $pageTitle = 'Page Title 4'; $pageHeader= 'Header of Page Title 4!'; include 'header.php'; PHP: There are numerous ways you could go about achieving the same thing, so I'm not entirely clear on how to answer you. I hope this can be of assistance.