To answer the answer you gave one hour ago, which said (quoting) :
In some PHP hosts you can being a
script block with <?
. In IIS the
block must start with <?php
.
That's not a setting of IIS ; that's a configuration option of PHP, which is called short_open_tag
: if that configuration option is enabled, short tags (i.e. <?
) will be accepted.
Using short open tags is often not considered as a good pratice, as they can be disabled -- and they are, by default, with recent versions of PHP -- but, if you are admin of your server, you should be able to re-enable them.
And, for information, they are also considered as "bad" because they can cause problem with XML files, which start with <?xml
-- if short_open_tag
is enabled, this will cause troubles, as it starts with <?
Enabling short_open_tag
is just a matter of editing your php.ini
file, and using
short_open_tag = On
Instead of
short_open_tag = Off
No need to edit/path all your PHP files ;-)
(Well, if you are admin of your server, that is...)