Prev | Current Page 100 | Next

W. Jason Gilmore

"Beginning PHP and MySQL: From Novice to Professional"


32 CHAPTER 2 ?–  CONFIGURING YOUR ENV IRONMENT
?– Note ASP-style tags are no longer available as of PHP 6.
precision = integer
Scope: PHP_INI_ALL; Default value: 12
PHP supports a wide variety of datatypes, including floating-point numbers. The
precision parameter specifies the number of significant digits displayed in a floatingpoint
number representation. Note that this value is set to 14 digits on Win32 systems
and to 12 digits on Linux.
y2k_compliance = On | Off
Scope: PHP_INI_ALL; Default value: Off
Who can forget the Y2K scare of just a few years ago? Superhuman efforts were
undertaken to eliminate the problems posed by non-Y2K-compliant software, and
although it??™s very unlikely, some users may be using wildly outdated, noncompliant
browsers. If for some bizarre reason you??™re sure that a number of your site??™s users fall
into this group, then disable the y2k_compliance parameter; otherwise, it should be
enabled.
output_buffering = On | Off | integer
Scope: PHP_INI_SYSTEM; Default value: Off
Anybody with even minimal PHP experience is likely quite familiar with the following
two messages:
"Cannot add header information ??“ headers already sent"
"Oops, php_set_cookie called after header has been sent"
These messages occur when a script attempts to modify a header after it has
already been sent back to the requesting user. Most commonly they are the result of
the programmer attempting to send a cookie to the user after some output has already
been sent back to the browser, which is impossible to accomplish because the header
(not seen by the user, but used by the browser) will always precede that output.


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