I have a strange problem. I have a PHP script (witj js, ajax and etc) and it works on localhost very well. But on hosting in internet this script doesn't works. Script is below:
$value = $_POST['web_url'];
$tag = get_meta_tags("http://".$value);
if(count($tag['keywords']) == 0)
{
echo "<div id='no_keywords'>No keywrds:</div>";
}
else
{
echo "<div id='title'>My keywords:</div>";
echo "<br/>";
print_r($tag['keywords']);
}
For example, in localhost, when I enter: bbc.com - I get all list of keywords(ELSE construction works), but on hosting when I enter bbe.com - I get that 'there are no keywords'(IF construction works always)...Very strange...I don't understand why? Have you got any ideas? ((
bbc.comon localhost butbbe.comon remote host; typo in the question, or actual error? Also, please post the code forget_meta_tags()so we can see how the remote website is loaded.