IIS7 + PHP + Zend - Not executing <= *pic*
-
05-09-2019 - |
Question
I have PHP, IIS7, ReWrite Module for IIS and Zend all installed.
I can execute PHP pages just fine, even got PHPINFO showing up.
I setup a Zend quickstart app on IIS and when I open it this is what I see:
You can see from the source that it's not executing the <= portions.
Any idea what needs to change?
Solution
You need to enable shortags in your php.ini:
short_opentag = on
However, even though Zend's examples use the open tag, for portability you really should use the full echo statement as not all webhosts allow for short_opentag. The short tag might save a bit of time typing but may actually be worse in the long run.
OTHER TIPS
make sure <? is enabled and not just <?php
if you use <?
php.ini --->short_opentag=On
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow