$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:[EMAIL PROTECTED]]
> Sent: 30 April 2001 14:25
> To: [EMAIL PROTECTED]
> 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
> [EMAIL PROTECTED]
> < www.mralston.co.uk />
> 
> 
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to