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
Hi Philip:
Several problems...
?php
$get_url = http://www.philipsdomain.com;;
Put a / on the end there. Without it, you're not really hitting a page,
but rather a redirect to a page.
$metatags= get_meta_tags($get_url,1);
echo $metatags[Keywords];
The manual indicates that the key
];
?
- Original Message -
From: Analysis and Solutions [EMAIL PROTECTED]
To: PHP List [EMAIL PROTECTED]
Sent: Tuesday, February 05, 2002 7:03 PM
Subject: Re: [PHP] Collecting Meta Tags and Traping Errors
Hi Philip:
Several problems...
?php
$get_url = http://www.philipsdomain.com
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
4 matches
Mail list logo