From: Doruk Fisek (dfisek@fisek.com.tr)
Date: Tue 20 May 2003 - 23:25:16 EEST
Merhaba,
20 May 2003 22:53:55 +0300 tarihinde oguzeren <oguze@tnn.net> soyle yazdi:
> $kullaniciid=mysql_result($query1,0,"kullaniciid");
> echo $kullaniciid;
> setcookie("kurabiye",$kullaniciid,time()+60);
> setcookie satirindan mozilla'da asagidaki hatayi aliyorum.
> Warning: Cannot add header information - headers already sent by (output
> started at /srv/home/forum/login.php:7) in /srv/home/forum/login.php on
> line 20
> Neden olabilir?
cookie'leri sayfanin en basinda baska herhangi bir baslik bilgisi
gondermeden once yollamaniz gerekiyor.
php el kitabinda kullandiginiz setcookie fonksiyonu ile ilgili bolumde de
cookie'lerin bu ozelligi belirtiliyor.
http://www.php.net/manual/tr/function.setcookie.php
Doruk
-- FISEK ENSTITUSU - http://www.fisek.com.tr Ankara : (0312) 3857026 - 4197811 Istanbul : (0216) 4284693 - 4284694