<?php

$tags = get_meta_tags('http://www.realgm.com/');

  
echo $tags['keywords'];    
echo $tags['description']; 

?>

i just used any website.. i can't get the meta tags though... what am i doing wrong? i get these error messages..

Warning: get_meta_tags() [function.get-meta-tags]: URL file-access is disabled in the server configuration in /home/ustackc1/public_html/menu.php on line 78

Warning: get_meta_tags(http://www.realgm.com/) [function.get-meta-tags]: failed to open stream: no suitable wrapper could be found in /home/ustackc1/public_html/menu.php on line 78


if its something to do with my host, what is another easy way to do this?

Member Avatar for diafol

Works fine for me. Security issue: remote URL settings are probably disabled in your php.ini. See your host.

The "allow_url_fopen" parameter in the php.ini enables the url-aware wrappers , just check if its 'TRUE' ..

what code is on 78 inside home.php?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.