php123 Posted February 14, 2007 Share Posted February 14, 2007 I recently upgraded my test server to php v 5.2. I am wondering if anyone knows why <? isn't working but <?php works and what I can do to fix this. Example: <?php phpinfo(); ?> works <? phpinfo(); ?> doesn't work Link to comment https://forums.phpfreaks.com/topic/38487-question-regarding-php-version-52-and-use-of/ Share on other sites More sharing options...
Balmung-San Posted February 14, 2007 Share Posted February 14, 2007 short_tags is disabled in your php.ini. I would suggest you always use the <?php tags, even if you have short_tags enabled. This will allow for support on all systems, regardless of the php.ini configuration. Link to comment https://forums.phpfreaks.com/topic/38487-question-regarding-php-version-52-and-use-of/#findComment-184652 Share on other sites More sharing options...
semaj4712 Posted February 14, 2007 Share Posted February 14, 2007 yea i had the same problem but they ended up useing <?php anyway since it ended up being more compatible Link to comment https://forums.phpfreaks.com/topic/38487-question-regarding-php-version-52-and-use-of/#findComment-184660 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.