Previous Next

Thread: php installed but works only when explicitley defined in code.

Last post 07-22-2008 5:19 PM by ruslany. 1 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (2 items)

Sort Posts:

  • 07-22-2008, 4:45 PM

    • jrnick
    • Not Ranked
    • Joined on 07-22-2008, 8:37 PM
    • Posts 4

    php installed but works only when explicitley defined in code.

     I've installed php on IIS 5.<something> running on Windows Server 2003.  php pages work fine when the php is explicitly defined in the tags <?php   ........   ?>.  however when php is surrounded only by <?  ...... ?>, which is common, it displays the code as plain text on the site.  Anyone know if anyway to make php the default script for '<?'  ?

  • 07-22-2008, 5:19 PM In reply to

    • ruslany
    • Top 25 Contributor
    • Joined on 07-01-2007, 7:38 PM
    • Redmond, WA
    • Posts 204

    Re: php installed but works only when explicitley defined in code.

    In your php.ini file change short_open_tag = On.

    http://ruslany.net
    Tags:
Page 1 of 1 (2 items)
Page view counter