Possible Duplicate:
mysql_fetch_array() expects parameter 1 to be resource, boolean given in select
for your information i create the simple database in meta_tags.txt
Error message:
Warning: fopen() [function.fopen]: Couldn't resolve host name in /home/myweddin/public_html/allan/header.php on line 3
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
Warning: fgetcsv() expects parameter 1 to be resource, boolean given in /home/myweddin/public_html/allan/header.php on line 7
header.php:
<?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];
}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php print $title; ?></title>
<meta content="index, follow" name="robots" />