<? doesnt work only <?php works

Discussion in 'General' started by Moundy, May 28, 2012.

  1. Moundy

    Moundy New Member

    Hey guys,

    i have another question. Scripts like

    Code:
    <?
    echo('test');
    ?>
    doesnt work, only

    Code:
    <?php
    echo('test');
    ?>
    works.

    Is there a way to make "<?" works also?

    Cheers
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Enable short_open_tag in your php.ini and restart apache.
     
  3. Moundy

    Moundy New Member

    Hey Till,

    is there any security risk after setting it on "on"?

    Cheers
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    No. Off is just the default in current PHP versions.
     

Share This Page