Thursday, April 28, 2011

php.ini: what i must change, to write <? instead <?php?

in my local hosting the script doesn't work, if i wrote <? instead of <?php.

what i must change in php.ini to correct it?

Thanks

From stackoverflow
  • http://php.net/manual/en/ini.core.php

    short_open_tag
    

    Is the property you seek.

    Syom : @Bisko Thanks man;) it can be `On` or `Off` ?
    bisko : Sure, It must be ON to allow
    Syom : ie. it doesn't work in versions >= 5.3.0 ???
    Richard Knop : No it doesn't work for version >= 5.3.0.
  • It is:

    short_open_tag

    Make sure to read:

  • It's already been said how to do it, but I'm just saying that it might not be such a great idea. Almost anyone you ask will tell you not to use short tags. Unless you have a specific reason to use short tags, you should just type <?php. It's only 3 more characters.

0 comments:

Post a Comment