RaaapuLis Posted August 24, 2008 Report Share Posted August 24, 2008 (edited) Vai kāds varētu palīdzēt? Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\AppServ\www\index.php:2) in C:\AppServ\www/index.php on line 3 un 3 līnijas ir session_start(); Un pirms viņas nau izvades... <meta charset="utf-8"> <?php session_start(); $username = $_SESSION['username']; $password = $_SESSION['password']; if(!$username && !$password){ echo "Sveiks Viesi! <br> <a href=login.php>Ielogoties</a> | <a href=register.php>Registreties</a>"; }else{ echo "Sveiks ".$username." (<a href=logout.php>Iziet</a>)"; } ?> kas tas par error? P.S. aizmirsu apteikt, ka charsets ir utf-8 without BOM Edited August 24, 2008 by RaaapuLis Link to comment Share on other sites More sharing options...
duplets Posted August 24, 2008 Report Share Posted August 24, 2008 Un kas tad ir šis <meta charset="utf-8"> ? Link to comment Share on other sites More sharing options...
*jancis38* Posted August 24, 2008 Report Share Posted August 24, 2008 Lasam. Link to comment Share on other sites More sharing options...
RaaapuLis Posted August 24, 2008 Author Report Share Posted August 24, 2008 es njeemu vinju nost nekas nemainaas :/ Link to comment Share on other sites More sharing options...
duplets Posted August 24, 2008 Report Share Posted August 24, 2008 Saglabā vnk kā utf-8 BOM`i ir vajadzīgi! Link to comment Share on other sites More sharing options...
RaaapuLis Posted August 24, 2008 Author Report Share Posted August 24, 2008 (edited) SALABOTS, var close, aplīdzēja jancis38 links paldies Edited August 24, 2008 by RaaapuLis Link to comment Share on other sites More sharing options...
duplets Posted August 24, 2008 Report Share Posted August 24, 2008 Ups, tikkai tagad kārtīgi iedziļinājos tavā pereklī, problēma ir līkā kodā, meiģini šādi: <?php session_start(); if(!isset($_SESSION['username']) && !isset($_SESSION['password'])){ echo "Sveiks Viesi! <br> <a href=login.php>Ielogoties</a> | <a href=register.php>Registreties</a>"; }else{ echo "Sveiks ".$username." (<a href=logout.php>Iziet</a>)"; } ?> Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now