Prev | Current Page 99 | Next

W. Jason Gilmore

"Beginning PHP and MySQL: From Novice to Professional"


CHAPTER 2 ?–  CONFIGURING YOUR EN V IRONMENT 31
zend.ze1_compatibility_mode = On | Off
Scope: PHP_INI_ALL; Default value: Off
Some three years after PHP 5.0 was released, PHP 4.X is still in widespread use. One
of the reasons for the protracted upgrade cycle is due to some significant object-oriented
incompatibilities between PHP 4 and 5. The zend.ze1_compatibility_mode directive
attempts to revert several of these changes in PHP 5, raising the possibility that PHP
4 applications can continue to run without change in version 5.
?– Note The zend.ze1_compatibility_mode directive never worked as intended and was removed in
PHP 6.
short_open_tag = On | Off
Scope: PHP_INI_ALL; Default value: On
PHP script components are enclosed within escape syntax. There are four different
escape formats, the shortest of which is known as short open tags, which looks like this:
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.
asp_tags = On | Off
Scope: PHP_INI_ALL; Default value: Off
PHP supports ASP-style script delimiters, which look like this:
<%
echo "Some PHP statement";
%>
If you??™re coming from an ASP background and prefer to continue using this delimiter
syntax, you can do so by enabling this tag.


Pages:
87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111