Robis Posted January 17, 2005 Report Share Posted January 17, 2005 Sveiki! Interesanti, ka man radas shadi pazinjojumi: Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /var/www/html/admin/index.php:1) in /var/www/html/admin/index.php on line 6 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /var/www/html/admin/index.php:1) in /var/www/html/admin/index.php on line 6 Bet attieciga index.php faila sakums ir shads: <?php ob_start(); error_reporting(E_ALL); session_start(); // 6. rinda Kas notiek talak nav svarigi! Esmu megjinajis mainit secibu shim komandam, vienmer parada to pashu kljudu un vienmer to rindu, kura ir session_start()! Kas tur varetu but par vainu? Link to comment Share on other sites More sharing options...
hu_ha Posted January 17, 2005 Report Share Posted January 17, 2005 pirmais neredzamais simbols? Link to comment Share on other sites More sharing options...
Robis Posted January 17, 2005 Author Report Share Posted January 17, 2005 kas tas? Dreamviewer MX joks? pirmais neredzamais simbols? 12831[/snapback] Link to comment Share on other sites More sharing options...
Robis Posted January 17, 2005 Author Report Share Posted January 17, 2005 Es to lapu pieseivoju notepadaa un uzliku tas rindinjas pirms visa vispirms, bet tik un ta vinjsh rada to erroru? Ko darit? Link to comment Share on other sites More sharing options...
bubu Posted January 17, 2005 Report Share Posted January 17, 2005 Gadījumā neseivoji notepadā ar UTF8 kodējumu? Tad 100 punkti, ka tur priekšā 3 baiti neredzamu simbolu. Paņem kādu citu redaktoru vai piemēram FAR/Total Commander un apskaties ar to. Link to comment Share on other sites More sharing options...
NeoX Posted January 17, 2005 Report Share Posted January 17, 2005 to session_start() raksti pirms visaam komandaam - tobish tuuliit aiz pirmaa "<?". Jau kaut ko izvadiisi pirms sesijas saakshanas, raadiis shito erroru! Link to comment Share on other sites More sharing options...
tamster Posted January 17, 2005 Report Share Posted January 17, 2005 (edited) to session_start() raksti pirms visaam komandaam - tobish tuuliit aiz pirmaa "<?".Jau kaut ko izvadiisi pirms sesijas saakshanas, raadiis shito erroru! 12837[/snapback] wrong. nejau session_start() tā vaina. visdrīzāk, tiešām - notepad ir pielicis savus 3 utf-8 baitus. pirms session_start() var tikt izpildītas dajebkādas komandas ar nosacījumu ka tās neko neizvada (netiek nosūtīti standarta headeri, kā content-type, utt. tb ne headeri bet saturs (kas protams izraisa arī headeru nosūtīšanu :)) Edited January 17, 2005 by tamster Link to comment Share on other sites More sharing options...
Robis Posted January 18, 2005 Author Report Share Posted January 18, 2005 Nu jaa, taisniiba bija! Biju noseivojis notepad ar utf-8 kodejumu, tagad parseivoju EditPlus un vairs kluda neradas! :) Thanx! Link to comment Share on other sites More sharing options...
Recommended Posts