Prev | Current Page 95 | Next

W. Jason Gilmore

"Beginning PHP and MySQL: From Novice to Professional"


The php.ini File
The PHP distribution comes with two configuration templates, php.ini-dist and
php.ini-recommended. You??™ll want to rename one of these files to php.ini and place it in
the location specified by the PHPIniDir directive found in Apache??™s httpd.conf file. It??™s
suggested that you use the latter because many of the parameters found within it are
already assigned their suggested settings. Taking this advice will likely save you a good
deal of initial time and effort securing and tweaking your installation because there
are well over 200 distinct configuration parameters in this file. Although the default
values go a long way toward helping you to quickly deploy PHP, you??™ll probably want to
make additional adjustments to PHP??™s behavior, so you??™ll need to learn a bit more about
php.ini and its many configuration parameters. The upcoming section ???PHP??™s Configuration
Directives??? presents a comprehensive introduction to many of these parameters,
explaining the purpose, scope, and range of each.
The php.ini file is PHP??™s global configuration file, much like httpd.conf is to Apache.
This file addresses 12 different aspects of PHP??™s behavior:
??? Language Options
??? Safe Mode
28 CHAPTER 2 ?–  CONFIGURING YOUR ENV IRONMENT
??? Syntax Highlighting
??? Miscellaneous
??? Resource Limits
??? Error Handling and Logging
??? Data Handling
??? Paths and Directories
??? File Uploads
??? Fopen Wrappers
??? Dynamic Extensions
??? Module Settings
The section ???PHP??™s Configuration Directives??? that follows will introduce many of
the directives found in the php.


Pages:
83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107