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 Quote Link to comment 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 Quote Link to comment 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 Quote Link to comment 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. Quote Link to comment 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 Quote Link to comment 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? Quote Link to comment 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 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.