PHP server configuration

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • arty
    New Member
    • Nov 2008
    • 35

    PHP server configuration

    I have a pretty simple question,
    I got this simple code:
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    
    <head>
      <title></title>
    </head>
    
    <body>
    <?php $gg="yo !";    ?>
    <?= $gg    ?>
    </body>
    
    </html>
    so as you can see it actually ouputs: yo !
    But on some server i'm uploading this simple php file it won't ouput anything.
    So i guess this is a php server config problem, anyone knows what needs to be activated to make the php output shortag work ? (<?= ?>)(so i can tell the server admin...)
  • Markus
    Recognized Expert Expert
    • Jun 2007
    • 6092

    #2
    short_tag_open needs to be set to 1

    Comment

    • arty
      New Member
      • Nov 2008
      • 35

      #3
      Thank you ! you are from York, i want to go to visit this city.the shambles !

      Comment

      • Markus
        Recognized Expert Expert
        • Jun 2007
        • 6092

        #4
        Originally posted by arty
        Thank you ! you are from York, i want to go to visit this city.the shambles !
        You're welcome.

        It's a great city :D

        Comment

        Working...