if (preg_match_all('//i', $html, $all_matches) > 1) print "whoa, document has more than one <title>!\n"; ----------------------------------------------------------------------------- Copyright 1997-2024 Jeffrey Friedl