getting page title using PHP

From: Date: Wed, 11 Jun 2003 01:03:27 +0000
Subject: getting page title using PHP
Groups: php.general 
Request: Send a blank email to php-general+get-150998@lists.php.net to get a copy of this message
Hi, As a matter of curiosity I've created a little script that will check what screen resolution visitors to my site are using and store the information into a MySQL database. So far, I'm recording the users IP address, screen resolution, and the date/time they visited. Now I'd like to be able to use this same script for all my pages - but I don't want to have to add in a page title each time I want to use the script, nor do I want to make page titles in PHP for all my pages. Is there a command in PHP that can get what's between the <title> and </title> tags? I found a few scripts that can get page titles if they are given a URL to go seek - but these scripts seem to store most of the pages HTML code in memory and I don't think my web host would enjoy that. TIA -Tim

« previous php.general (#150998) next »