Search code examples
phpiis-7php-shorttags

How to enable short tags in IIS 7.5


I have edited the php.ini file, but it is still not being enabled:

       short_open_tag
     Default Value: On
;   Development Value: On
;   Production Value: On

says it is off in the phpinfo file.

I am using php 5.3

cheers.

This is how you fix it:

If you go to PHP Manager, then go under "manage all settings" which is under "PHP settings", you can enable it via a UI. Frustrating!


Solution

  • For ISS you need to go to "PHP Manager" Then look for "Manage all settings"

    Then search for short_open_tag Double click on it and give value On

    enter image description here

    Follow the gif file

    Restart the ISS and it will work.