PHP blocks and inlines weirdness

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • skinner.daniel@gmail.com

    PHP blocks and inlines weirdness

    recently, a php5 server had pear installed (its the only thing im aware
    of changing on it) and now opening php statements as so

    <?

    ?>

    doesn't work correctly and inlines such as

    <?=?>

    do not work correctly either. Everything has to be done as

    <?php

    ?>

    Is anyone familiar with this problem?

  • Michael Fesser

    #2
    Re: PHP blocks and inlines weirdness

    ..oO(skinner.da niel@gmail.com)
    >recently, a php5 server had pear installed (its the only thing im aware
    >of changing on it) and now opening php statements as so
    >
    ><?
    >
    >?>
    >
    >doesn't work correctly and inlines such as
    >
    ><?=?>
    >
    >do not work correctly either. Everything has to be done as
    Check phpinfo() for the setting of short_open_tag, it's probably turned
    off (as it should be).
    ><?php
    >
    >?>
    That's the correct and most portable way.

    Micha

    Comment

    • Daniel Skinner

      #3
      Re: PHP blocks and inlines weirdness


      Michael Fesser wrote:
      .oO(skinner.dan iel@gmail.com)
      >
      recently, a php5 server had pear installed (its the only thing im aware
      of changing on it) and now opening php statements as so

      <?

      ?>

      doesn't work correctly and inlines such as

      <?=?>

      do not work correctly either. Everything has to be done as
      >
      Check phpinfo() for the setting of short_open_tag, it's probably turned
      off (as it should be).
      >
      <?php

      ?>
      >
      That's the correct and most portable way.
      >
      Micha
      thanks for the solution

      Comment

      Working...