ID:               42793
 Updated by:       [EMAIL PROTECTED]
 Reported By:      webmaster at adriaportal dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         Unknown/Other Function
 Operating System: Windows NT 5.2 build 3790
 PHP Version:      5.2.4
 New Comment:

>From the manual page: http://php.net/get_meta_tags you can find this:

"The value of the name property becomes the key, the value of the
content property becomes the value of the returned array, so you can
easily use standard array functions to traverse it or access single
values. Special characters in the value of the name property are
substituted with '_', the rest is converted to lower case. If two meta
tags have the same name, only the last one is returned."

So there is no bug here.


Previous Comments:
------------------------------------------------------------------------

[2007-09-28 20:58:58] webmaster at adriaportal dot com

Description:
------------
Hello,

here is a piece of index.php of my site ("www.adriaportal.com" /
"www.adriaportal.eu"), between opening and closing tag of head.

<head>
 <meta http-equiv="Content-Language" content="cs">
 <meta http-equiv="Content-Type" content="text/html;
charset=windows-1250">
 <title>Adria portal</title>
 <meta name="description" content="Promotion of tourism and
introduction to the culture of Czech and Croatian people."
lang="en-US">
 <meta name="description" content="Podpora rozvoje turizmu a vzájemné
poznávání kultur Chorvatù a Èechù." lang="cs-CZ">
 <meta name="description" content="Podrška razvoja turizma i uzajamnog
upoznavanja kultura Èeha i Hrvata." lang="hr-HR">
 <meta name="keywords"
content="czech,republic,croatia,holiday,sea,adritic,links,portal,accomodation,connections,directory,dictionary,news"
lang="en-US">
 <meta name="keywords"
content="èechy,èeská,republika,chorvatská,chorvatsko,dovolená,moøe,jadran,odkazy,portál,ubytování,spojení,adresáø,slovník,novinky"
lang="cs-CZ">
 <meta name="keywords"
content="èeška,republika,hrvatska,odmor,more,jadran,linkovi,portal,smještaj,veze,adresao,rijeènik,vijesti"
lang="hr-HR">
</head>

I'm test the function on my site index page.

Reproduce code:
---------------
Here is my code of testing:

$myArr = get_meta_tags("http://www.adriaportal.com/";);

print_r($myArr);


Expected result:
----------------
Expected is:

Array ( 
 [http-equiv][0]  => "Content-Language" content="cs",
 [http-equiv][1]  => "Content-Type" content="text/html;
charset=windows-1250",
 [description][0] => Promotion of tourism and introduction to the
culture of Czech and Croatian people.,
 [description][1] => Podpora rozvoje turizmu a vzájemné poznávání
kultur Chorvatù a Èechù.,
 [description][2] => Podrška razvoja turizma i uzajamnog upoznavanja
kultura Èeha i Hrvata., 
 [keywords][0]    =>
czech,republic,croatia,holiday,sea,adritic,links,portal,accomodation,connections,directory,dictionary,news,

 [keywords][1]    =>
èechy,èeská,republika,chorvatská,chorvatsko,dovolená,moøe,jadran,odkazy,portál,ubytování,spojení,adresáø,slovník,novinky,
 [keywords][2]    =>
èeška,republika,hrvatska,odmor,more,jadran,linkovi,portal,smještaj,veze,adresao,rijeènik,vijesti,

)

or better array structure with all attributes of adequate meta tag


Actual result:
--------------
And the result:

Array ( 
 [description] => Podrška razvoja turizma i uzajamnog upoznavanja
kultura Èeha i Hrvata. 
 [keywords] =>
èeška,republika,hrvatska,odmor,more,jadran,linkovi,portal,smještaj,veze,adresao,rijeènik,vijesti

)

I'm cannot see in result these tags:

<meta http-equiv="Content-Language" content="cs">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1250">

and i'm see only

the description and keywords meta tags, all the last rows in header,
here in croatian language (owerrides the before parsed rows?).

Is this a BUG or i'm make something false?

Thank's for your response ;o)

Djordje Zurovac

P.S. Sorry for my english (?), i'm can active only czech, croatian and
german languages. 



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=42793&edit=1

Reply via email to