Re: Collecting Meta Tags and Traping Errors
| From: | Analysis and Solutions | Date: | Tue, 05 Feb 2002 06:31:42 +0000 |
| Subject: | Re: Collecting Meta Tags and Traping Errors | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-83540@lists.php.net to get a copy of this message | ||
Hi Philip:
"Philip J. Newman" wrote:
>
> <?php
> $get_url = "http://www.philipsdomain.com/";
> $metatags = get_meta_tags($get_url,1);
> echo $metatags['keywords'];
> echo $metatags[description];
> ?>
This code works perfectly for me, on an NT 4 machine using PHP 4.0.7 dev.
Oh, perfectly, spare the fact that the page at
"http://www.philipsdomain.com/" has
absolutely no contents.
Try "http://www.analysisandsolutions.com/"
instead and see what happens.
Are you running into problems mentioned in the manual of unix v mac? What
happens if you take out the ",1" in the get_meta_tags() call?
Enjoy,
--Dan
PS: In the future, pleaes be kind enough to 1) just send emails to the list,
not to me and the list and 2) snip out content from the message you're
responding to. Thanks.
--
PHP scripts that make your job easier
http://www.analysisandsolutions.com/code/
SQL Solution | Layout Solution | Form Solution
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
4015 7 Ave, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409