About Get_meta_tags()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, All,

    Sorry to trouble you, but I really can not handle this problem now. I
want to call get_meta_tags() function to get meta-tags which site I want to
know. I searched usage and I did like this: 

    <?php

// Call get_meta_tags to fetch meta_tags in brackets.

$tags = get_meta_tags("http://www.example.com/";);

 

    //Echo meta content

print $tags['keywords']; 

?> 

 

But an errors occurred when the page run. Some information liked this:

  Warning: get_meta_tags(): php_network_getaddresses: gethostbyname failed
in d:\apache\htdocs\meta_tag.php on line 3

Warning: get_meta_tags(http://www.pconline.com.cn): failed to open stream:
No such file or directory in d:\apache\htdocs\meta_tag.php on line 3

 

My server is Apache 1.3.27 and PHP4.4.0 that run in Windows 2000 server. 

 

I want to ask if anybody can solve the problem, thanks so much.

 

Best wishes,

Jimmie

 


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux