Log in

View Full Version : Web Page Title using PHP



e1seix
07-22-2007, 08:39 PM
is it possible to use php to decide the title of your web page? ie. within the <title></title> tags.

hmm... ;)

Twey
07-22-2007, 10:43 PM
Of course, you can echo a title just like anything else...
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title> <?php echo 'Some title'; ?> </title>
</head>
<body>
<p>Content</p>
</body>
</html>Here's a basic PHP tutorial (http://www.php.net/tut.php).