Detecting HTML Page Title in PHP

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tom
    Junior Member
    • Oct 2006
    • 2

    Detecting HTML Page Title in PHP

    I currently have a JavaScript that I am trying to convert over to php.
    In JavaScript to detect the page title would just be document.title.

    Is there a way to do this in php?
    If so,
    How do I detect a page title in php?
    I have to detect it no matter what the extension is ie .asp, .php, etc etc etc.

    Thanks for any insight and help
    Last edited by tom; 10-18-2006, 02:11 AM.
    India Real Estate - San antonio apartment search - W*** Poker Forum
  • kam735
    Junior Member
    • Dec 2012
    • 5

    #2
    PHP is server-side, so you would need to download the page within the PHP script and evaluate it internally. What's the purpose exactly? That would be helpful if we knew what you were trying to do exactly...

    Comment

    Working...
    😀
    😂
    🥰
    😘
    🤢
    😎
    😞
    😡
    👍
    👎