PHP - Get Meta Tags
<p>I have this code:</p>

<pre><code>&lt;?php

$LF = 'links.txt';
$Rfp = fopen($LF, 'r');

while(!feof($Rfp))
{
    $links = fgets($Rfp);
    $tags = get_meta_tags($links);

    if ($tags['description'] == "")
        echo "No META Description Found";
    else
        echo $tags['description'];
}

fclose($Rfp);

?&gt;
</code></pre>

<p>My links.txt has a list of 5000 URLS one per line. I get this error for every URL in my file, when I execute this script</p>

<pre><code>Warning: get_meta_tags(http://www.1saleaday.com ) [function.get-meta-tags]: failed to open stream: php_network_getaddresses: getaddrinfo failed: No such host is known. in F:\xampp\htdocs\mte.php on line 10
No META Description Foundhttp://www.1stopflorists.com
Warning: get_meta_tags() [function.get-meta-tags]: php_network_getaddresses: getaddrinfo failed: No such host is known. in F:\xampp\htdocs\mte.php on line 10
</code></pre>

<p>I am sure that the links I have in my links.txt file, all have META description. So, where am I failing? Please guide.</p>
