renathy Posted April 7, 2009 Report Share Posted April 7, 2009 (edited) Kādēļ ir tā, ka uz mana servera šis warnings (Cannot send session cookie - headers already sent by.. un pēc tam arī headers already send) neparādās, bet uzliekot uz klienta - parādās. Man ir šāds index.php fails (nekā cita tur iekšā nav) <?php session_start(); ?> Uz klienta servera rāda kļūdu: Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at ......./index.php:1) in ...../index.php on line Es pārbaudīju, ka nekādas liekas atstarpes nekur kodā nav. Tad es saglabāju failu nevis UTF8, bet ANSI kodējumā (notepad++). Un viss aizgāja... Vai kāds zina kāpēc tā notiek? Edited April 7, 2009 by renathy Quote Link to comment Share on other sites More sharing options...
Aleksejs Posted April 7, 2009 Report Share Posted April 7, 2009 Jā! Šīs pašas sadaļas augšā ir piesprausta tēma Headerrs already sent ;) Tajā viss paskaidrots. Visticamāk, ka tavā gadījumā ir UTF8 ar BOM. Quote Link to comment Share on other sites More sharing options...
p4F Posted April 7, 2009 Report Share Posted April 7, 2009 http://apblog.lv/2007/05/07/utf-8-bom-simb...s-already-sent/ Quote Link to comment Share on other sites More sharing options...
renathy Posted April 7, 2009 Author Report Share Posted April 7, 2009 (edited) Manā gadījumā tiešām bija UTF without Bom. Bet tagad es uzliku visiem failiem to UTF without BOM un man kkā pazuda garumzīmes - tagad lapā nav garumzīmju (t.i., kodā ierakstu "āēūī", parādās ķeburi). Nez, varbūt es vēl kko citu izdarīju. VISS SKAIDRS. KĻŪDA IZLABOTA. Edited April 7, 2009 by renathy Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.