hEiti Posted June 17, 2008 Report Share Posted June 17, 2008 <?php //Start session session_start(); //Check whether the session variable //SESS_MEMBER_ID is present or not if(!isset($_SESSION['SESS_MEMBER_ID']) || (trim($_SESSION['SESS_MEMBER_ID'])=='')) { header("location: error.php"); exit(); } ?> sheit ja nav ielogojies parmet uz error.php, ka lai panaku kad nedirekto bet tur pat parada kad neizdevas pieslegties? meginaju echo "neizdevas pieslegties"; bet tad lapa nestrada vnk blanks un neielade saturu :( Link to comment Share on other sites More sharing options...
andrisp Posted June 17, 2008 Report Share Posted June 17, 2008 Parādi kā tu mēģināji ar to echo. Link to comment Share on other sites More sharing options...
marcis Posted June 17, 2008 Report Share Posted June 17, 2008 Tu gajau echo taisiji pēc exit Link to comment Share on other sites More sharing options...
hEiti Posted June 17, 2008 Author Report Share Posted June 17, 2008 <?php //Start session session_start(); //Check whether the session variable //SESS_MEMBER_ID is present or not if(!isset($_SESSION['SESS_MEMBER_ID']) || (trim($_SESSION['SESS_MEMBER_ID'])=='')) { header("location: error.php"); exit(); } ?> <?php //Start session session_start(); //Check whether the session variable //SESS_MEMBER_ID is present or not if(!isset($_SESSION['SESS_MEMBER_ID']) || (trim($_SESSION['SESS_MEMBER_ID'])=='')) { echo "neizdevas"; exit(); } ?> Link to comment Share on other sites More sharing options...
andrisp Posted June 17, 2008 Report Share Posted June 17, 2008 hEiti, tad sanāk, ka tev redirektējot viss strādā, bet drukājot neko neredzi ? tā nevar būt. Vienīgi iespējams, ka tu pieļauj kļūdu kaut kur sintaksē (un tev ir atslēgts error reportings), tāpēc balta lapa veras. Link to comment Share on other sites More sharing options...
Klez Posted June 17, 2008 Report Share Posted June 17, 2008 man liekas ka error.php failaa raada veel kaut ko ... vien shitas ir (es pieljauju) skripta saakumaa... tas ir kaut kaads open-source sisteema ? Link to comment Share on other sites More sharing options...
hEiti Posted June 18, 2008 Author Report Share Posted June 18, 2008 Klez bija taisniba.. bet problemu izdevas sekmigi noverst.. bet tagad sezu kasu galvu pie jaunas problemas <? session_start(); if(!isset($_SESSION['SESS_MEMBER_ID']) || (trim($_SESSION['SESS_MEMBER_ID'])=='')) { echo ""; else echo "_main"; ?> Un nespeju saprast kapec vinsh negrib darit ... neko! Link to comment Share on other sites More sharing options...
andrisp Posted June 18, 2008 Report Share Posted June 18, 2008 Ko nozīmē neko ? Kad ir ielogojies vai kad nav ? Ja nav ielogojies, tad, protams, vizuāli izskatīsies, ka nekā nenotiek. A varbūt tev serverī vienkārši ir atslēgti short tagi ? Link to comment Share on other sites More sharing options...
Aleksejs Posted June 18, 2008 Report Share Posted June 18, 2008 Nu... 1kārt IESLĒDZ TO ERROR REPORTINGU VIENREIZ. 2kārt: Aiz if(...) Tev ir atverošā figūriekava, bet pirms else nav aizverošās - tādēļ arī kļūda. Link to comment Share on other sites More sharing options...
Recommended Posts