Collecting Meta Tags and Traping Errors

From: Date: Tue, 05 Feb 2002 03:57:49 +0000
Subject: Collecting Meta Tags and Traping Errors
Groups: php.general 
Request: Send a blank email to php-general+get-83513@lists.php.net to get a copy of this message
I'm trying to get the meta tags. <?php $get_url = "http://www.philipsdomain.com"; $metatags= get_meta_tags($get_url,1); echo "$metatags[Keywords]"; echo "<br>"; echo "$metatags[Description]"; ?> This is the error I get Warning: get_meta_tags("http://www.philipsdomain.com") - No error in d:\website\myphp\test1.php on line 4 Most sites that have meta tags that I have tried the meta tags do not come up. Is there a way to trap these errors? and give common out put? Philip J. Newman Philip's Domain - Internet Project. http://www.philipsdomain.com/ info@philipsdomain.com Phone: +64 25 6144012

« previous php.general (#83513) next »