Page 1 of 1

Name in the <title> tag

Posted: Wed Sep 14, 2005 5:56 pm
by sulen
I need to be able to get the name of the web page enclosed within the <title> tags. I cannot use strip_tags because that would require me to assign the code to a variable which I cannot do. For eg

<html>
<head>
<title> test page </title>
</head>
<body>
blah blah blah ...........
</body>
</html>

I need to be able to get the string "test page" between the title tags and assign it to a php variable for display. Any suggestion will be greatly appreciated

Thx in advance

Posted: Wed Sep 14, 2005 6:12 pm
by josh