Atomz Posted February 22, 2007 Report Share Posted February 22, 2007 Kur šeit ir kļuuda? <?php if(isset($_GET['css'])) { $css = $_GET['css']; } elseif(isset($_COOKIE['css'])) { $css = $_COOKIE['css']; } else { $css = 'blue'; } setcookie("css", $css, time() + 3600*24*21, "/", ".yourdomain.com"); $querystring = ""; foreach ($_GET as $key => $value) { if ($key != 'css') { $querystring .= "&".$key."=".$value; } } ?> Saka ka kluuda ir 14 liinijaa taatad šeit: setcookie("css", $css, time() + 3600*24*21, "/", ".yourdomain.com"); Link to comment Share on other sites More sharing options...
andrisp Posted February 22, 2007 Report Share Posted February 22, 2007 Un kur kļūdas paziņojums ? Kāpēc neiekopēji šeit ? Link to comment Share on other sites More sharing options...
Atomz Posted February 22, 2007 Author Report Share Posted February 22, 2007 Warning: Cannot modify header information - headers already sent by (output started at C:\AppServ\www\Tests\index.php:8) in C:\AppServ\www\Tests\mainidizainu.php on line 14 Link to comment Share on other sites More sharing options...
Stopp Posted February 22, 2007 Report Share Posted February 22, 2007 Iekopē daļu kļūdas gūglī un sakties. Vari kopēt arī šī foruma searchā. Dafiga reizes par daudz jau izrunāts. Link to comment Share on other sites More sharing options...
andrisp Posted February 22, 2007 Report Share Posted February 22, 2007 Izrunāta tēma miljons reizes, pameklē tepat iekš foruma "Cannot modify header information" (ar pēdiņām) Link to comment Share on other sites More sharing options...
Atomz Posted February 22, 2007 Author Report Share Posted February 22, 2007 Taa i nedaleca ko dariit! Link to comment Share on other sites More sharing options...
andrisp Posted February 22, 2007 Report Share Posted February 22, 2007 setcookie fja browseri suuta headeri. headeri browserim ir jaanosuuta pirms jebkaada outputa (iznjemot ja ieksh php.ini eneiblots output_buffering). tev, aciimredzot, pirms setcookie tiek browserim nosuutiits kaut kaads outputs. Link to comment Share on other sites More sharing options...
cilveks Posted February 22, 2007 Report Share Posted February 22, 2007 Kuru vārdu tieši tu nesaprati? Iekopē daļu kļūdas gūglī un sakties. Vari kopēt arī šī foruma searchā. Dafiga reizes par daudz jau izrunāts. Izrunāta tēma miljons reizes, pameklē tepat iekš foruma "Cannot modify header information" (ar pēdiņām) Link to comment Share on other sites More sharing options...
Recommended Posts