GraaBeklis Posted May 1, 2005 Report Share Posted May 1, 2005 (edited) Tikliidz es uzrakstu <?php session_start(); .... ?> man izmet error: Warning: Cannot send session cookie - headers already sent by (output started at d:\www\web\index.php:15) in d:\www\web\lapa.php on line 17 Warning: Cannot send session cache limiter - headers already sent (output started at d:\www\web\index.php:15) in d:\www\web\lapa.php on line 17 Warning: open(/tmp\sess_0d987fd21727024bc1f6fb149b456f08, O_RDWR) failed: No such file or directory (2) in d:\www\web\lapa.php on line 17 Taa 17 line ir tas session_start(); Edited May 1, 2005 by GraaBeklis Link to comment Share on other sites More sharing options...
ohmygod Posted May 1, 2005 Report Share Posted May 1, 2005 (edited) Nu bet pirms tās 17 rindas gan jau ka ir kād outputs - kaut kas izvadīts! Tā nedrīkst būt, jo headeri nosūtās pirms pirmā izvadītā teksta. session_start(); liec uzreiz aiz <?PHP Edited: /tmp\ kas tas tāds?? Vigvamu cel? Edited May 1, 2005 by ohmygod Link to comment Share on other sites More sharing options...
GraaBeklis Posted May 1, 2005 Author Report Share Posted May 1, 2005 Nu man ir shitaa: lapa.php <HTML> <HEAD> <TITLE>TurnOFF LATVIA</TITLE> <!-- pārveido valodu, lai tā būtu saprotama LV useriem + stils --> <META http-equiv=Content-Type content="text/html; charset=windows-1257"> <LINK href="styles/1.css" type=text/css rel=stylesheet> </HEAD> <BODY class="body"> <!-- Uzsaakam sesiju --> <?php session_start(); ... ?> index.php failaa man staav taa login formaa un kad nospiezh uz submit aiziet uz lapa.php un tur man arii izmet shitos errorus.. a es tak nez kas tas pa \tmp Link to comment Share on other sites More sharing options...
ohmygod Posted May 1, 2005 Report Share Posted May 1, 2005 Lana, neiespringsti pagaidām par to tmp :D es tik panjirdz... karoč pārcel session_start(); uz pašu sākumu pirms <HTML> lai būtu šitā <?PHP session_start(); ?> <HTML> ... Link to comment Share on other sites More sharing options...
GraaBeklis Posted May 1, 2005 Author Report Share Posted May 1, 2005 nu tag lapaa ir tikai shitas kods: <?PHP session_start(); ?> Un uzrāda error: Warning: open(/tmp\sess_e0d24e773f69d2ee910937d9240dfca5, O_RDWR) failed: No such file or directory (2) in d:\www\web\lapa.php on line 1 Warning: open(/tmp\sess_e0d24e773f69d2ee910937d9240dfca5, O_RDWR) failed: No such file or directory (2) in Unknown on line 0 Warning: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0 PS. ;) Link to comment Share on other sites More sharing options...
ohmygod Posted May 1, 2005 Report Share Posted May 1, 2005 Warning: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0 Kuru burtu man tev no šitā paskaidrot?? Izlasi davaika pats vispirms, kas tajā brīdinājumā ir! Pirmīt teicu, lai pagaidām par to neiespringsti - tagad vot ir laiks... Link to comment Share on other sites More sharing options...
GraaBeklis Posted May 1, 2005 Author Report Share Posted May 1, 2005 (edited) nu man taa skjiet ka ir jaizveido kautkaada mape, ja?? jo pa shito kautkur pirmiit atradu, bet ne iisti tur sapratu to lietu.. vai varbuut ar funkciju: session_save_path, kautkas jadara? Edited May 1, 2005 by GraaBeklis Link to comment Share on other sites More sharing options...
ohmygod Posted May 1, 2005 Report Share Posted May 1, 2005 session.save_path ir parametrs, kurš atrodams iekš php.ini faila. Failu visdrīzāk ka meklē iekš windows direktorijas.... Aizkomentē to rindiņu ciet! Vai arī norādi korektu ceļu! Link to comment Share on other sites More sharing options...
GraaBeklis Posted May 1, 2005 Author Report Share Posted May 1, 2005 Nu jā atradu vinju: ;session.save_path = /tmp ; Whether to use cookies. session.use_cookies = 1 Izdarīju shitaa: #session.save_path = /tmp Bet man radaas jautaajums kaads buutu tas korektais celjsh ?? Link to comment Share on other sites More sharing options...
hu_ha Posted May 1, 2005 Report Share Posted May 1, 2005 Bet man radaas jautaajums kaads buutu tas korektais celjsh ?? 17097[/snapback] korektais ceļš ir tu, kur atrodas windozes temp dir's, ar domu, ka pēc restarta vai citiem apkalpes procesiem tā direktorija tiek patīrīta. Principā gluži vienalga, ka tik tai direktorijai ir tiesības rakstīt un lasīt. Link to comment Share on other sites More sharing options...
ohmygod Posted May 1, 2005 Report Share Posted May 1, 2005 Nu jā atradu vinju:Izdarīju shitaa: #session.save_path = /tmp Bet man radaas jautaajums kaads buutu tas korektais celjsh ?? 17097[/snapback] Vispār jau korektāk būtu bijis, ja aizkomentētu ar ; nevis # Tā kā viss pārējais tur ir aizkomentēts!! Nu pilnīgi akls... A korektais ceļš būtu uz TEMP direktoriju, kurā tev paredzēts glabāt sesijas datus... Link to comment Share on other sites More sharing options...
blackhalt Posted May 1, 2005 Report Share Posted May 1, 2005 Nu jā atradu vinju:Izdarīju shitaa: #session.save_path = /tmp Bet man radaas jautaajums kaads buutu tas korektais celjsh ?? 17097[/snapback] Pilnais Winblows stilaa: tipa: d:\tmp\ Link to comment Share on other sites More sharing options...
Recommended Posts