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. Link to comment https://forums.phpfreaks.com/topic/153023-solved-what-php-setting-allows/ 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. Link to comment https://forums.phpfreaks.com/topic/153023-solved-what-php-setting-allows/#findComment-803711 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. Link to comment https://forums.phpfreaks.com/topic/153023-solved-what-php-setting-allows/#findComment-803718 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? Link to comment https://forums.phpfreaks.com/topic/153023-solved-what-php-setting-allows/#findComment-803725 Share on other sites More sharing options...
schilly Posted April 7, 2009 Author Share Posted April 7, 2009 got it. <?php echo same as <?= Link to comment https://forums.phpfreaks.com/topic/153023-solved-what-php-setting-allows/#findComment-803727 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.