MyBB Community Forums

Full Version: PHP title?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Code to add title to PHP document? I currently have http://LINK/file.php as my title. I'd like to put it to FILE - LINK.
Never came across to title as it was compilacated back then so just skipped it.
Just echo the HTML.

echo '<title>Page Title Here</title>';
Generally, if I'm using a header template, I'll assign a

<title><?php echo $pagetitle; ?> | Sitename</title>

Attribute to it, then go

$pagetitle = 'This is my Pagetitle';