gunmetal Posted May 8, 2010 Report Share Posted May 8, 2010 (edited) Kāpēc šī koda dēļ saits neiet? :D <?php if (!empty($_SESSION[sESS_FIRST_NAME])) { echo "wazzap"; } else { include('login-form.php'); } ?> Edited May 8, 2010 by gunmetal Quote Link to comment Share on other sites More sharing options...
gunmetal Posted May 8, 2010 Author Report Share Posted May 8, 2010 Ui nop sataisīju :d Quote Link to comment Share on other sites More sharing options...
Kemito Posted May 9, 2010 Report Share Posted May 9, 2010 ['SESSIJAS_NOSAUKUMS'] nevis [sESSIJAS_NOSAUKUMS] to jau taka vaidzētu :/ Quote Link to comment Share on other sites More sharing options...
m8t Posted May 9, 2010 Report Share Posted May 9, 2010 http://tinyurl.com/2f9f87o Quote Link to comment Share on other sites More sharing options...
briedis Posted May 9, 2010 Report Share Posted May 9, 2010 ['SESSIJAS_NOSAUKUMS'] nevis [sESSIJAS_NOSAUKUMS] to jau taka vaidzētu :/ strādās abi, tikai otrajā gadījumā vispirms tiks meklēta konstante... No disciplīnas ziņas, stulbi kā otrais gadījums strādā, ja nav tādas konstantes... Quote Link to comment Share on other sites More sharing options...
Kavacky Posted May 9, 2010 Report Share Posted May 9, 2010 Ja sāk runāt par disciplīnu, tad PHP by default iet stūrī uzpīpēt. Quote Link to comment Share on other sites More sharing options...
briedis Posted May 9, 2010 Report Share Posted May 9, 2010 Ja sāk runāt par disciplīnu, tad PHP by default iet stūrī uzpīpēt. Protams, pastrādājot iekš javas, vai, kā biežāk sanāk - VB.NET, tad iekš php valda varena visatļautība :D Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.