zoran Posted August 23, 2009 Share Posted August 23, 2009 I peace of normal php code, saved in htdocs in xampp in a file : <? // check for session variables session_start(); // load the script containing the common functions require "forum.php"; // check to make sure this is a new visit to the page if (!$_SESSION['logged_userID']) { // if it is, show the greeting setup_page ("Banja Forum","Ulaz"); echo "Dobro dosli na <b><span style='font-size:12pt; color:#CC9900;'>Banja Forum</span></b>. Ovdje mozete davati komentare o svemu sto zelite. Od vas trazimo samo pristojno ponasanje "; } else { // if not, log the user out session_destroy(); setup_page ("Izlaz", "Izlaz"); echo "Izasli ste sa foruma."; } ?> <BR> <BR> <A HREF="register.php">Novi korisnici kliknite ovdje da se <b>registrujete</b>.</A> <BR> <BR> <A HREF="login.php">Registrovani korisnici, kliknite ovdje da se <b>login</b> na forum.</A> </p></font> <? // nivo logo echo"<br><br><br><br><br><a style = 'text-decoration: none; a:hover padding-bottom: 2px; border-bottom: 1px solid #61d260; ' href='http://nivodesign.com'><p style = 'font-family: Georgia, Times New Roman, Times, serif; font-size: 70%; letter-spacing: 0.1em; text-align: left;'>Nivo Design © <span style = 'font-size: 0.7em; color:#CC9900; '>All Rights Reserved...</span></p></a>"; ?> When opened, apears on Firefox like this: Can anyone help with suggestion what is wrong? Link to comment https://forums.phpfreaks.com/topic/171550-my-pc-does-not-intrepret-php-code-any-more/ Share on other sites More sharing options...
Daniel0 Posted August 23, 2009 Share Posted August 23, 2009 Try using <?php instead of <?. Short tags are disabled by default in PHP5. Link to comment https://forums.phpfreaks.com/topic/171550-my-pc-does-not-intrepret-php-code-any-more/#findComment-904675 Share on other sites More sharing options...
zoran Posted August 23, 2009 Author Share Posted August 23, 2009 Cheers, Now the picture appeard, and it looks ok. thank you , saved me a few gray hears on my head. Link to comment https://forums.phpfreaks.com/topic/171550-my-pc-does-not-intrepret-php-code-any-more/#findComment-904677 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.