SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot
    Join Date
    Apr 2006
    Posts
    147
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Can you change page title in PHP?

    The actually info I could use for the page title isn't generated until about half way down the page. Is it possible to set the default title and then change it before the end of the script?

    It would save a lot of headache trying to restructure the page if it's possible.

    Thanks.

  2. #2
    He's No Good To Me Dead silver trophybronze trophy stymiee's Avatar
    Join Date
    Feb 2003
    Location
    Slave I
    Posts
    23,449
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Just don't echo out your html until it's time to change the title. You can do this with outpuit control: http://us3.php.net/manual/en/ref.outcontrol.php

  3. #3
    SitePoint Zealot
    Join Date
    Apr 2006
    Posts
    147
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the suggestions, couldn't get it to work so I just went with restructuring the page, wasn't so bad after all!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •