RE: Get the title from an HTML page

From: Date: Mon, 30 Apr 2001 15:54:51 +0000
Subject: RE: Get the title from an HTML page
Groups: php.general 
Request: Send a blank email to php-general+get-50870@lists.php.net to get a copy of this message
$title = substr(stristr($filetext, "<title>"), 7); $title = substr($title , 0, strpos($title , "</title>")); Tim Ward Senior Systems Engineer Please refer to the following disclaimer in respect of this message: http://www.stivesdirect.com/e-mail-disclaimer.html > -----Original Message----- > From: Matthew Ralston [mailto:matthew.ralston@haltoncollege.ac.uk] > Sent: 30 April 2001 14:25 > To: php-general@lists.php.net > Subject: Get the title from an HTML page > > > I'll be loading the contents of an HTML page into a variable > and I need to > get the title of the from that variable. > > Basically I need to ge the text from in between the <title> tags. > Any ideas? > > Thanks, > > Matt > matthew.ralston@haltoncollege.ac.uk > < www.mralston.co.uk /> > > >

« previous php.general (#50870) next »