Datasheet

Setting What It Does
short_open_tag Allows short tags to be parsed (<? and ?> as opposed to <?php
and ?>).
asp_tags Allows ASP-style tags to be parsed (<% and %>).
precision Determines the number of digits to be displayed in floating-
point numbers. The default is 12, and this should suffice for most
applications.
output_buffering Allows header lines to be sent after HTML has already been sent
to the server. The default is “Off,” and most third-party hosts
maintain this default. It is not advisable to change this setting,
especially if you depend on a third-party host.
max_execution_time Sets the limit for how long a script can take to run; expressed in
seconds.
max_input_time Sets the limit for how long a script can take to parse the data;
expressed in seconds.
memory_limit Sets the limit for how much memory a script can use to run;
expressed in MB.
error_reporting There are many levels you can use to set what errors will be
shown to you, but for the purposes of this book, we assume that
error_reporting is set to E_ALL. When set to E_ALL, all errors
and warnings are shown.
display_errors Determines whether or not errors will be printed. Leave this fea-
ture on while you develop your site and you learn PHP, but once
the site is ready to go live, we recommend that this setting be
switched to “off” for security purposes.
log_errors Allows errors to be written into a log file for future reference. We
recommend that you switch this setting to “on.”
error_log Points to the name of your PHP error log file.
variables_order Determines the order in which variables are registered. The
default is EGPCS, which translates into Environment, GET,
POST, COOKIE, and Built-in variables. We recommend that you
leave this as the default setting until you are more familiar with
PHP and the way variables work. In addition, your third-party
host will most likely keep the default setting. This setting applies
to all variables on all PHP pages, which we discuss in greater
detail in Chapter 2.
register_globals Determines whether variables sent through forms are available
globally. This was a recent change from “on” to “off” as the
default, and we recommend you leave this set to “off.” You can
read more about register_globals in Chapter 2.
Table continued on following page
15
Configuring Your Installation
04_579665 ch01.qxd 12/30/04 8:09 PM Page 15