php ini short_open_tag

This directive determines whether or not PHP will recognize code between <? and ?> tags as PHP source which should be processed as such. It is been recommended for several years that you not use the short tag "short cut" and instead to use the full <?php and ?> tag combination.

With the wide spread use of XML and use of these tags by other languages, the server can become easily confused and end up parsing the wrong code in the wrong context. But because this short cut has been a feature for such a long time, it's currently still supported for backwards compatibility, but we recommend you don't use them.

; Default Value: On
; Development Value: Off
; Production Value: Off
short_open_tag = on

Lines beginning with a semicolon are comments.The parameter short_open_tag is assigned the value Off.

short_open_tag Example :

<?
echo "Some PHP statement";
?>

You may recognize that this syntax is shared with XML, which could cause issues in certain environments. Thus, a means for disabling this particular format has been provided. When short_open_tag is enabled (On), short tags are allowed; when disabled (Off), they are not.





Content