Page <title> from include variable?

From: mark (dgfgdfgdg_at_asdfasd.com)
Date: 12/31/03


Date: Tue, 30 Dec 2003 23:40:07 -0000

IF I have something like this:

<title><?php print($pagetitle); ?></title>
<body>
<?php include("folders/my_include.php"); ?>
</body>
</html>

and my_include.php contains the value to the variable ($pagetitle). How do I
get the value before the code for the <title> is written. This is just a
basic example I used to try and put across my question, my site has a whole
bunch of includes dynamically generated from user input. I'd just like to
get the <title> to change according to a variable in the includes......but
Im stuck?

I should say also that all my includes have includes themselves, they
include a html template. So placing <?php include("folders/my_include.php");
?> before the title tag won't look very good :)

thanks

mark



Relevant Pages

  • page <title> from include variable, how?
    ... bunch of includes dynamically generated from user input. ... I;m stuck? ...
    (php.general)
  • Re: A question about partials
    ... stuck, not damaging the teeth). ... Mark & Steven Bornfeld DDShttp://www.dentaltwins.com ... get past being so afraid now. ...
    (sci.med.dentistry)
  • Re: Bibliography in Word 2007 Invalid source specified
    ... it doesn't explain you seeing that text in the preview pane. ... could you select "Sort by Tag". ... In between them, type the CITATION ... None have a check mark beside them. ...
    (microsoft.public.word.docmanagement)
  • Re: TAG Heuer?
    ... Don't blame Tag - they use the same ETA movements as most of the other Swiss ... I don't know why the obsession about second hands hitting the mark. ... > the second hand to the marks. ...
    (alt.horology)
  • Re: File Concatenater
    ... or would you have to strip the tags before concatenation? ... starts with a special mark. ... The ID3v2 tag block is encoded in a way to avoid ... The most annoying with just concatening 2 MP3 files is the duration ...
    (comp.sys.acorn.apps)