schilly Posted April 7, 2009 Share Posted April 7, 2009 always taken this for granted. i'm guessing it's a php.ini setting to allow for <? to be recognized as php. Which setting is it and is there a specific name for using <? ? ie. <?= etc. thx. Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted April 7, 2009 Share Posted April 7, 2009 The setting is called short_open_tag However you should use full PHP tags. This way your code will much more portable. Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted April 7, 2009 Share Posted April 7, 2009 From php.net - ; NOTE: Using short tags should be avoided when developing applications or ; libraries that are meant for redistribution, or deployment on PHP ; servers which are not under your control, because short tags may not ; be supported on the target server. For portable, redistributable code, ; be sure not to use short tags. Quote Link to comment Share on other sites More sharing options...
schilly Posted April 7, 2009 Author Share Posted April 7, 2009 awesome. thanks for the quick help guys. so can you do <?= with a <?php tag? Quote Link to comment Share on other sites More sharing options...
schilly Posted April 7, 2009 Author Share Posted April 7, 2009 got it. <?php echo same as <?= 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.