Digital-X Posted December 21, 2003 Report Share Posted December 21, 2003 Kaa uztaisiit taa ka saglabaa vairaak Varus vienaa cookie? Probleema taada: setcookie ("user", $user); setcookie ("theme", $theme); ja shaadi rakstu vinsh izmet error: Warning: Cannot add header information - headers already sent by (output started at .... Warning: Cannot add header information - headers already sent by (output started at .... Kaa to apiet? Kaut kaa shaadi? setcookie ("cookie[three]", "cookiethree"); setcookie ("cookie[two]", "cookietwo"); setcookie ("cookie[one]", "cookieone"); Link to comment Share on other sites More sharing options...
Aleksejs Posted December 21, 2003 Report Share Posted December 21, 2003 (edited) Varbūt tādēļ, ka vispirms vajag ieslēgt output buffering, lai nekādi headeri netiktu sūtīti pirms laika? ob_start(); setcookie ("user", $user); setcookie ("theme", $theme); ob_end_flush(); Edited December 21, 2003 by Aleksejs Link to comment Share on other sites More sharing options...
Kaklz Posted December 22, 2003 Report Share Posted December 22, 2003 Kaa uztaisiit taa ka saglabaa vairaak Varus vienaa cookie?Probleema taada: setcookie ("user", $user); setcookie ("theme", $theme); ja shaadi rakstu vinsh izmet error: Warning: Cannot add header information - headers already sent by (output started at .... Warning: Cannot add header information - headers already sent by (output started at .... Kaa to apiet? Kaut kaa shaadi? setcookie ("cookie[three]", "cookiethree"); setcookie ("cookie[two]", "cookietwo"); setcookie ("cookie[one]", "cookieone"); cookie ir jaauzstaada pirms tu suuti jebkaadu saturu uz paarluukprogrammu. Taa arii ir visa kljuuda ;) .. sookie peec kaartas tu vari uzstaadiit kaut vai 10, vienkaarshi pirms tam tev nedriikst buut nekaads html, ne taisiits ar echo, ne arii vienkaarshss inline html .. Link to comment Share on other sites More sharing options...
eergl Posted December 22, 2003 Report Share Posted December 22, 2003 Jā, Kaklz taisnība, vecīt - mācies. B) Link to comment Share on other sites More sharing options...
Digital-X Posted December 25, 2003 Author Report Share Posted December 25, 2003 paldies par info! :) Link to comment Share on other sites More sharing options...
Recommended Posts