Re_Boot Posted May 17, 2008 Report Share Posted May 17, 2008 Sveiki, man ir te tada probleminja. Man webs met errorus kadus ieprieksh vel nav metis proti: Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:\AppServ\www\ninja\ua\funcs.inc.php:1) in C:\AppServ\www\ninja\ua\check.inc.php on line 25 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\AppServ\www\ninja\ua\funcs.inc.php:1) in C:\AppServ\www\ninja\ua\check.inc.php on line 25 Warning: Cannot modify header information - headers already sent by (output started at C:\AppServ\www\ninja\ua\funcs.inc.php:1) in C:\AppServ\www\ninja\do.php on line 316 Tas viss sakas, ka es parinstaleju WINDOWS. Luuk kur ir linijas, kuras itka ir error CHECK.INC.PHP on line 25: session_name($session_name); session_start(); if (PRD_PHP_INT_VERSION >= 40100) { if (isset($_SESSION['logu'])) { $logu = $_SESSION['logu']; } else { $logu = ''; } if (isset($_SESSION['logp'])) { $logp = $_SESSION['logp']; } else { $logp = ''; } } else { if (!session_is_registered('logu')) { $logu = ''; } if (!session_is_registered('logu')) { $logp = ''; }}if (SID) { $sid = '?'.SID; $sidp = '&'.SID; $sidf = '<input type="hidden" name="'.session_name().'" value="'.session_id().'">'; } else { $sid = ''; $sidp = ''; $sidf = ''; } DO.PHP on line 316: $RS2 = mysql_fetch_array($RS2_query); array_walk($RS2,'non_slashes_mysql'); if (!($RS2['password'] == $passwd)) { $error = true; $error_msg .= "Invalid password\n"; } else { $id_user = $RS2['id_user']; session_name($session_name); session_start(); ob_start("ob_gzhandler"); $logu = $id_user; $logp = md5(md5(md5($passwd))); if (PRD_PHP_INT_VERSION >= 40100) { $_SESSION['logu'] = $logu; $_SESSION['logp'] = $logp; } else { session_register('logu'); session_register('logp'); } $return = true; if (SID) { $sid = '?'.SID; } else { $sid = ''; } header('Location: ./ua/'.$sid); } } } } } Link to comment Share on other sites More sharing options...
Grey_Wolf Posted May 17, 2008 Report Share Posted May 17, 2008 (edited) Shii nu jau ir klasika !!! Shis jautajums tiek uzdots ar apskauzamu regularitaati :( Izlasi Ludzu foruma lietosanas noteikumus !!! Jo shiis jautajums pat ir Speciali izdaliits !!! Sheit !!!! Edit: citaats no foruma noteikumiem [cit]Tas, ka jūs to neprotat lietot, nenozīmē, ka jums ir tiesības piesārņot šo forumu. Visi jautājumi, uz kuriem ir atbildēts, un ja uz tiem ir iespējams ātri atrast atbildi, tiks vienkārši izdzēsti. [/cit] Edited May 17, 2008 by Grey_Wolf Link to comment Share on other sites More sharing options...
anonīms Posted May 17, 2008 Report Share Posted May 17, 2008 session_name($session_name); session_start(); uz session_start(); session_name($session_name); un seivo utf-8 without BOM Link to comment Share on other sites More sharing options...
andrisp Posted May 17, 2008 Report Share Posted May 17, 2008 anonīms, vispār jau: The session name is reset to the default value stored in session.name at request startup time. Thus, you need to call session_name() for every request (and before session_start() or session_register() are called). Link to comment Share on other sites More sharing options...
anonīms Posted May 17, 2008 Report Share Posted May 17, 2008 ā :) Nu tad utf-8 without bom paliek Link to comment Share on other sites More sharing options...
Recommended Posts