Jump to content

[Solved] PHP short open tags no longer working on Tommy


n747mm

Recommended Posts

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

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...