11.07.2015 Views

PHP MySQL - Stilson.net

PHP MySQL - Stilson.net

PHP MySQL - Stilson.net

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

www.it-ebooks.infoCHAPTER 2 • CONFIGURING YOUR ENVIRONMENTopen_basedir = "/home/www/"Note that the influence exercised by this directive is not dependent upon the safe_mode directive.disable_functions = stringScope: <strong>PHP</strong>_INI_SYSTEM; Default value: NULLIn certain environments, you may want to completely disallow the use of certain default functions,such as exec() and system(). Such functions can be disabled by assigning them to the disable_functionsparameter, like this:disable_functions = "exec, system";Note that the influence exercised by this directive is not dependent upon the safe_mode directive.disable_classes = stringScope: <strong>PHP</strong>_INI_SYSTEM; Default value: NULLGiven the capabilities offered by <strong>PHP</strong>’s embrace of the object-oriented paradigm, it likely won’t betoo long before you’re using large sets of class libraries. There may be certain classes found within theselibraries that you’d rather not make available, however. You can prevent the use of these classes via thedisable_classes directive. For example, if you want to disable two particular classes, named vector andgraph, you use the following:disable_classes = "vector, graph"Note that the influence exercised by this directive is not dependent upon the safe_mode directive.ignore_user_abort = Off | OnScope: <strong>PHP</strong>_INI_ALL; Default value: OffHow many times have you browsed to a particular page only to exit or close the browser before thepage completely loads? Often such behavior is harmless. However, what if the server is in the midst ofupdating important user profile information, or completing a commercial transaction? Enablingignore_user_abort causes the server to ignore session termination caused by a user- or browserinitiatedinterruption.Syntax Highlighting<strong>PHP</strong> can display and highlight source code. You can enable this feature either by assigning the <strong>PHP</strong>script the extension .phps (this is the default extension and, as you’ll soon learn, can be modified) or viathe show_source() or highlight_file() function. To use the .phps extension, you need to add thefollowing line to httpd.conf:AddType application/x-httpd-php-source .phpsYou can control the color of strings, comments, keywords, the background, default text, and HTMLcomponents of the highlighted source through the following six directives. Each can be assigned an RGB,27

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!