n747mm Posted February 5, 2018 Posted February 5, 2018 Hi guys. Firstly thanks for the excellent service. I have a bunch of PHP running on my site on Tommy, and it's stopped working some time in the last few weeks. It looks like the problem is that Tommy's PHP interpreter no longer recognises the short open tag '<?' and only responds to the full '<?php'. Per http://php.net/manual/en/language.basic-syntax.phptags.php it looks like this can be changed in a PHP config file. Is the current behaviour deliberate (in which case I'll have a lot of PHP to fix up), or can it be changed back to recognise the short open tag? Thanks,n747mm
wolstech Posted February 5, 2018 Posted February 5, 2018 This is intentional. In fact, we never meant to support them to begin with, but forgot to turn the setting off when we built the server. Short tags are considered bad practice and are also obsolete (they can conflict with files from other standards that also contain <?, such such as some XML files). Please update your code to use full <?php tags.
n747mm Posted February 5, 2018 Author Posted February 5, 2018 Understood, I'll update the code. Thanks for the quick reply.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now