View Full Version : Grabbing HTML Title
03-26-2004, 03:32 AM
I would like to know the title of an HTML file. i feel like there should be a function to get this, does anyone know of any? if not, should i just use regex?
Uehh. Not sure if i understand when you would use somethin like that.
In this for html-files that are stored on your server?
Regex would work if you can read the file (not request it).
03-27-2004, 06:21 PM
yeah the files are on my server. so i'll just use regex, thanks.
03-27-2004, 08:34 PM
Do you mean grab the text between the <title> and </title> tags? If so you could use a regular expression for that (and preg_match() )
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.