jeeva Posted May 29, 2007 Share Posted May 29, 2007 hi there, previously i was using php4 now i am going to use php5. For that i have installed php5 in my local system.Usually i am coding like <? ?> instead of <?php ?>.If i use <? ?> then the all code will display as text. for that i have cofigured in ini file.Now its working fine in my localhost, but i need to do the same thing for my server also. As of now i cant access my server. my qtn is can we change this through code? Link to comment https://forums.phpfreaks.com/topic/53368-short-tag-problem/ Share on other sites More sharing options...
dustinnoe Posted May 29, 2007 Share Posted May 29, 2007 just use your fav text editor to replace all instances of <? with <?php Should take about 30secs Link to comment https://forums.phpfreaks.com/topic/53368-short-tag-problem/#findComment-263728 Share on other sites More sharing options...
jitesh Posted May 29, 2007 Share Posted May 29, 2007 in php.ini set sort_open_tag = On and restart web server (Apache) Link to comment https://forums.phpfreaks.com/topic/53368-short-tag-problem/#findComment-263744 Share on other sites More sharing options...
MadTechie Posted May 29, 2007 Share Posted May 29, 2007 heehee replace all '<?=' with '<?php echo ' then replace all '<? ' with '<?php ' then replace all '<?phpphp ' with '<?php ' (do this twice just in case) LOL i hate using short tags Link to comment https://forums.phpfreaks.com/topic/53368-short-tag-problem/#findComment-263783 Share on other sites More sharing options...
ToonMariner Posted May 29, 2007 Share Posted May 29, 2007 Short tags should be banned - they are a relic of yester year and intefer with other stuff you may wish to do in php - such as xml files... DON'T USE THEM Link to comment https://forums.phpfreaks.com/topic/53368-short-tag-problem/#findComment-263789 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.