Re: Search question ..

From: Date: Wed, 23 Jul 2003 16:37:23 +0000
Subject: Re: Search question ..
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-156484@lists.php.net to get a copy of this message
* Thus wrote James Hatridge (James.Hatridge@epost.de): > Hi all.. > > I've got a search page written for my web site. I can find the html page I > want by keyword. Now I need to get the title of that page in to a variable. > In other words I have a file name, for example Summerbulletin.html. I now > need to get the line "<title> Summer 2003 </title>" in to a variable. How > do > I tell html or PHP what I want? (I hope that I am understandable, I'm still > new at this. ) > > Right now I output the search results in to a chart that shows > "Summerbulletin.html". What I would like to show is "Summer 2003". preg_match('#\<title\>(.*)\</title\>#im', $text, $matches): Curt -- "I used to think I was indecisive, but now I'm not so sure."

« previous php.general (#156484) next »