This question already has an answer here:
I've some little older PHP coded websites lying around, starting their PHP code with <?
instead of <?php
. I just started migrating these websites to my new server with PHP 5.6 installed. Now my PHP code just displays as text and the webserver doesn't interpret it as PHP code anymore. Is there a simple fix for this or do I need to replace all <?
tags with <?php
?
Thanks in advance!
</div>
Short tags have been disabled on your new server. You need to enable it again in your php.ini file. Your host may also allow you to modify it in an .htaccess file:
php_flag short_open_tag on