failed to open stream .... Why? Help me
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/2973202/mysql-fetch-array-expects-parameter-1-to-be-resource-boolean-given-in-select">mysql_fetch_array() expects parameter 1 to be resource, boolean given in select</a>  </p>
</blockquote>



<p>for your information i create the simple database in meta_tags.txt</p>

<p>Error message:</p>

<p>Warning: fopen() [function.fopen]: Couldn't resolve host name in /home/myweddin/public_html/allan/header.php on line 3</p>

<p>Warning: fopen(http://allan.myweddingmemory.com/meta_tags.txt) [function.fopen]: failed to open stream: operation failed in /home/myweddin/public_html/allan/header.php on line 3</p>

<p>Warning: fgetcsv() expects parameter 1 to be resource, boolean given in /home/myweddin/public_html/allan/header.php on line 7</p>

<p>header.php:</p>

<pre><code>&lt;?php
$database = 'http://allan.myweddingmemory.com/meta_tags.txt';
$meta_db = fopen($database, 'r');
$page = $_SERVER['SCRIPT_NAME'];
$page = substr($page, 1);

while($data = fgetcsv($meta_db, 9000, '|'))
{
    if($data[0] == $page)
    {
                $title = $data[1];
        $meta_keywords = $data[2];
        $meta_description = $data[3];
    }
}
?&gt;
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
&lt;title&gt;&lt;?php print $title; ?&gt;&lt;/title&gt;
&lt;meta content="index, follow" name="robots" /&gt;
</code></pre>
