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