Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Problema su header'iais

Parašė Narysx· 2010 Rugp. 9 00:08:25
#1

Turiu failą index.php. Jame includinu failą ivertinti.php. ivertinti.php faile esu pasidaręs post funkciją, kad po jos redirectintų, va:

if (isset($_POST['post_rating'])) {
         if (isnum($_POST['rating']) && $_POST['rating'] > 0 && $_POST['rating'] < 11) {
            $result = mysql_query("INSERT......");
         }
header('WWW.google.lt');
            }




Kai vykdau šitą funkciją, man meta klaidą:

Warning: Cannot modify header information - headers already sent by (output started at /home/user/domains/url/public_html/index.php:13) in /home/user/domains/url/public_html/ivertinti.php on line 69

index.php 13 linija:

<title><?php echo "$title"; ?></title>



daugiau:
......
?>
<!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 echo "$title"; ?></title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
........




ivertinti.php 69 linija:

header('WWW.google.lt');




Kaip sutvarkyti šitą problemą?