jessa_jr Posted November 12, 2008 Share Posted November 12, 2008 Im having a problem whenever I view the index page using IIS 5.1 webserver the code of my session will comeout to the value of the textbox like this <?=$_SESSION['name']?>, but whenever I used xampp server its ok what seems to be the problem Link to comment https://forums.phpfreaks.com/topic/132370-session-problem-on-iis-51/ Share on other sites More sharing options...
PFMaBiSmAd Posted November 12, 2008 Share Posted November 12, 2008 Don't use short open tags. Change all <?= to <?php echo and change all <? to <?php Link to comment https://forums.phpfreaks.com/topic/132370-session-problem-on-iis-51/#findComment-688345 Share on other sites More sharing options...
jessa_jr Posted November 13, 2008 Author Share Posted November 13, 2008 Thank you very much, I not showing anymore but some of the code are not running I dont know why but it runs perfectly in apache Link to comment https://forums.phpfreaks.com/topic/132370-session-problem-on-iis-51/#findComment-689127 Share on other sites More sharing options...
corbin Posted November 13, 2008 Share Posted November 13, 2008 It's probably short tags. Either enable shorttags, or change all <? to <?php. Link to comment https://forums.phpfreaks.com/topic/132370-session-problem-on-iis-51/#findComment-689783 Share on other sites More sharing options...
jessa_jr Posted November 17, 2008 Author Share Posted November 17, 2008 Thank you very much but how can I enable short tags. I enable it from my php.ini configuration like this short_open_tag = On, is there other configuration to enable it in the php.ini. Thanks I appreciate all your help Link to comment https://forums.phpfreaks.com/topic/132370-session-problem-on-iis-51/#findComment-691722 Share on other sites More sharing options...
corbin Posted November 17, 2008 Share Posted November 17, 2008 That should be fine.... Did you restart IIS? Link to comment https://forums.phpfreaks.com/topic/132370-session-problem-on-iis-51/#findComment-691800 Share on other sites More sharing options...
jessa_jr Posted November 17, 2008 Author Share Posted November 17, 2008 Yes I already did but when I put it back to short tags, I still encountered the problem Link to comment https://forums.phpfreaks.com/topic/132370-session-problem-on-iis-51/#findComment-691838 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.