apache
apache的版本:
httpd-2.2.21-win32-x86-no_ssl
php的版本:
php-5[1].3.8-win32-vc9-x86
(一) 准备工作
1.先找在d:/amp/php中找到php.ini-development这个文件,然后把它改成php.ini这个文件名
2.用记事本,或editplus将其打开
(二)操作步骤:
1.告诉php所用的扩展模块所在位置
807行 extension_dir = d:/amp/php/ext 点我查看
2. 告诉php所用的时区 998行 点我查看代码
date.timezone = prc
3.让apache引入php解释引擎 点我查看
4. 如果要用php中引入相应模块 点我查看
注意当在php中引入extension=php_curl.dll这个模块时apache2.2就会提示找到相应模块。如下图
这时在apache2.2的配置文件pttd.conf中加入: 点我查看
loadfile d:/amp/php/libeay32.dll
loadfile d:/amp/php/ssleay32.dll
5.如果整合php后,apache不能启动,且测试配置文件的结果类似于下图
这是因为系统上没有相应的vc编译器的库文件和头文件.安装相应的库文件即可.以vc9为例, 安装 vcredist_x86.exe,即可解决
以下是在apache2.2中的操作
1):加载php模块
例:在loadmodule 语句下面,添加一行
loadmodule php5_module d:/amp/php/php5apache2_2.dll
2):通过声明,让apache能够识别.php程序
在addtyp 系列行附近,添加一行
addtype application/x-httpd-php .php
3):声明php.ini配置文件的位置,使apache能够读取php运行的相关参数.
在apache的主记录行里(非这样的配置段),添加一行
phpinidir d:/amp/php
4): 重启apache 测试效果.
代码展示:
复制代码 代码如下:
[php]
; about php.ini ;
; php's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of php's behavior.
; php attempts to find and load this configuration from a number of locations.
; the following is a summary of its search order:
; 1. sapi module specific location.
; 2. the phprc environment variable. (as of php 5.2.0)
; 3. a number of predefined registry keys on windows (as of php 5.2.0)
; 4. current working directory (except cli)
; 5. the web server's directory (for sapi modules), or directory of php
; (otherwise in windows)
; 6. the directory from the --with-config-file-path compile time option, or the
; windows directory (c:\windows or c:\winnt)
; see the php docs for more specific information.
; http://php.net/configuration.file
; the syntax of the file is extremely simple. whitespace and lines
; beginning with a semicolon are silently ignored (as you probably guessed).
; section headers (e.g. [foo]) are also silently ignored, even though
; they might mean something in the future.
; directives following the section heading [path=/www/mysite] only
; apply to php files in the /www/mysite directory. directives
; following the section heading [host=www.example.com] only apply to
; php files served from www.example.com. directives set in these
; special sections cannot be overridden by user-defined ini files or
; at runtime. currently, [path=] and [host=] sections only work under
; cgi/fastcgi.
; http://php.net/ini.sections
; directives are specified using the following syntax:
; directive = value
; directive names are *case sensitive* - foo=bar is different from foo=bar.
; directives are variables used to configure php or php extensions.
; there is no name validation. if php can't find an expected
; directive because it is not set or is mistyped, a default value will be used.
; the value can be a string, a number, a php constant (e.g. e_all or m_pi), one
; of the ini constants (on, off, true, false, yes, no and none) or an expression
; (e.g. e_all & ~e_notice), a quoted string (bar), or a reference to a
; previously set variable or directive (e.g. ${foo})
; expressions in the ini file are limited to bitwise operators and parentheses:
; | bitwise or
; ^ bitwise xor
; & bitwise and
; ~ bitwise not
; ! boolean not
; boolean flags can be turned on using the values 1, on, true or yes.
; they can be turned off using the values 0, off, false or no.
; an empty string can be denoted by simply not writing anything after the equal
; sign, or by using the none keyword:
; foo = ; sets foo to an empty string
; foo = none ; sets foo to an empty string
; foo = none ; sets foo to the string 'none'
; if you use constants in your value, and these constants belong to a
; dynamically loaded extension (either a php extension or a zend extension),
; you may only use these constants *after* the line that loads the extension.
; about this file ;
; php comes packaged with two ini files. one that is recommended to be used
; in production environments and one that is recommended to be used in
; development environments.
; php.ini-production contains settings which hold security, performance and
; best practices at its core. but please be aware, these settings may break
; compatibility with older or less security conscience applications. we
; recommending using the production ini in production and testing environments.
; php.ini-development is very similar to its production variant, except it's
; much more verbose when it comes to errors. we recommending using the
; development version only in development environments as errors shown to
; application users can inadvertently leak otherwise secure information.
; quick reference ;
; the following are all the settings which are different in either the production
; or development versions of the inis with respect to php's default behavior.
; please see the actual settings later in the document for more details as to why
; we recommend these changes in php's behavior.
; allow_call_time_pass_reference
; default value: on
; development value: off
; production value: off
; display_errors
; default value: on
; development value: on
; production value: off
; display_startup_errors
; default value: off
; development value: on
; production value: off
; error_reporting
; default value: e_all & ~e_notice
; development value: e_all | e_strict
; production value: e_all & ~e_deprecated
; html_errors
; default value: on
; development value: on
; production value: off
; log_errors
; default value: off
; development value: on
; production value: on
; magic_quotes_gpc
; default value: on
; development value: off
; production value: off
; max_input_time
; default value: -1 (unlimited)
; development value: 60 (60 seconds)
; production value: 60 (60 seconds)
; output_buffering
; default value: off
; development value: 4096
; production value: 4096
; register_argc_argv
; default value: on
; development value: off
; production value: off
; register_long_arrays
; default value: on
; development value: off
; production value: off
; request_order
; default value: none
; development value: gp
; production value: gp
; session.bug_compat_42
; default value: on
; development value: on
; production value: off
; session.bug_compat_warn
; default value: on
; development value: on
; production value: off
; session.gc_divisor
; default value: 100
; development value: 1000
; production value: 1000
; session.hash_bits_per_character
; default value: 4
; development value: 5
; production value: 5
; short_open_tag
; default value: on
; development value: off
; production value: off
; track_errors
; default value: off
; development value: on
; production value: off
; url_rewriter.tags
; default value: a=href,area=href,frame=src,form=,fieldset=
; development value: a=href,area=href,frame=src,input=src,form=fakeentry
; production value: a=href,area=href,frame=src,input=src,form=fakeentry
; variables_order
; default value: egpcs
; development value: gpcs
; production value: gpcs
; php.ini options ;
; name for user-defined php.ini (.htaccess) files. default is .user.ini
;user_ini.filename = .user.ini
; to disable this feature set this option to empty value
;user_ini.filename =
; ttl for user-defined php.ini files (time-to-live) in seconds. default is 300 seconds (5 minutes)
;user_ini.cache_ttl = 300
; language options ;
; enable the php scripting language engine under apache.
; http://php.net/engine
engine = on
; this directive determines whether or not php will recognize code between
; and ?> tags as php source which should be processed as such. it's been
; recommended for several years that you not use the short tag short cut and
; instead to use the full tag combination. with the wide spread use
; of xml and use of these tags by other languages, the server can become easily
; confused and end up parsing the wrong code in the wrong context. but because
; this short cut has been a feature for such a long time, it's currently still
; supported for backwards compatibility, but we recommend you don't use them.
; default value: on
; development value: off
; production value: off
; http://php.net/short-open-tag
short_open_tag = off
; allow asp-style tags.
; http://php.net/asp-tags
asp_tags = off
; the number of significant digits displayed in floating point numbers.
; http://php.net/precision
precision = 14
; enforce year 2000 compliance (will cause problems with non-compliant browsers)
; http://php.net/y2k-compliance
y2k_compliance = on
; output buffering is a mechanism for controlling how much output data
; (excluding headers and cookies) php should keep internally before pushing that
; data to the client. if your application's output exceeds this setting, php
; will send that data in chunks of roughly the size you specify.
; turning on this setting and managing its maximum buffer size can yield some
; interesting side-effects depending on your application and web server.
; you may be able to send headers and cookies after you've already sent output
; through print or echo. you also may see performance benefits if your server is
; emitting less packets due to buffered output versus php streaming the output
; as it gets it. on production servers, 4096 bytes is a good setting for performance
; reasons.
; note: output buffering can also be controlled via output buffering control
; functions.
; possible values:
; on = enabled and buffer is unlimited. (use with caution)
; off = disabled
; integer = enables the buffer and sets its maximum size in bytes.
; note: this directive is hardcoded to off for the cli sapi
; default value: off
; development value: 4096
; production value: 4096
; http://php.net/output-buffering
output_buffering = 4096
; you can redirect all of the output of your scripts to a function. for
; example, if you set output_handler to mb_output_handler, character
; encoding will be transparently converted to the specified encoding.
; setting any output handler automatically turns on output buffering.
; note: people who wrote portable scripts should not depend on this ini
; directive. instead, explicitly set the output handler using ob_start().
; using this ini directive may cause problems unless you know what script
; is doing.
; note: you cannot use both mb_output_handler with ob_iconv_handler
; and you cannot use both ob_gzhandler and zlib.output_compression.
; note: output_handler must be empty if this is set 'on' !!!!
; instead you must use zlib.output_handler.
; http://php.net/output-handler
;output_handler =
; transparent output compression using the zlib library
; valid values for this option are 'off', 'on', or a specific buffer size
; to be used for compression (default is 4kb)
; note: resulting chunk size may vary due to nature of compression. php
; outputs chunks that are few hundreds bytes each as a result of
; compression. if you prefer a larger chunk size for better
; performance, enable output_buffering in addition.
; note: you need to use zlib.output_handler instead of the standard
; output_handler, or otherwise the output will be corrupted.
; http://php.net/zlib.output-compression
zlib.output_compression = off
; http://php.net/zlib.output-compression-level
;zlib.output_compression_level = -1
; you cannot specify additional output handlers if zlib.output_compression
; is activated here. this setting does the same as output_handler but in
; a different order.
; http://php.net/zlib.output-handler
;zlib.output_handler =
; implicit flush tells php to tell the output layer to flush itself
; automatically after every output block. this is equivalent to calling the
; php function flush() after each and every call to print() or echo() and each
; and every html block. turning this option on has serious performance
; implications and is generally recommended for debugging purposes only.
; http://php.net/implicit-flush
; note: this directive is hardcoded to on for the cli sapi
implicit_flush = off
; the unserialize callback function will be called (with the undefined class'
; name as parameter), if the unserializer finds an undefined class
; which should be instantiated. a warning appears if the specified function is
; not defined, or if the function doesn't include/implement the missing class.
; so only set this entry, if you really want to implement such a
; callback-function.
unserialize_callback_func =
; when floats & doubles are serialized store serialize_precision significant
; digits after the floating point. the default value ensures that when floats
; are decoded with unserialize, the data will remain the same.
serialize_precision = 17
; this directive allows you to enable and disable warnings which php will issue
; if you pass a value by reference at function call time. passing values by
; reference at function call time is a deprecated feature which will be removed
; from php at some point in the near future. the acceptable method for passing a
; value by reference to a function is by declaring the reference in the functions
; definition, not at call time. this directive does not disable this feature, it
; only determines whether php will warn you about it or not. these warnings
; should enabled in development environments only.
; default value: on (suppress warnings)
; development value: off (issue warnings)
; production value: off (issue warnings)
; http://php.net/allow-call-time-pass-reference
allow_call_time_pass_reference = off
; safe mode
; http://php.net/safe-mode
safe_mode = off
; by default, safe mode does a uid compare check when
; opening files. if you want to relax this to a gid compare,
; then turn on safe_mode_gid.
; http://php.net/safe-mode-gid
safe_mode_gid = off
; when safe_mode is on, uid/gid checks are bypassed when
; including files from this directory and its subdirectories.
; (directory must also be in include_path or full path must
; be used when including)
; http://php.net/safe-mode-include-dir
safe_mode_include_dir =
; when safe_mode is on, only executables located in the safe_mode_exec_dir
; will be allowed to be executed via the exec family of functions.
; http://php.net/safe-mode-exec-dir
safe_mode_exec_dir =
; setting certain environment variables may be a potential security breach.
; this directive contains a comma-delimited list of prefixes. in safe mode,
; the user may only alter environment variables whose names begin with the
; prefixes supplied here. by default, users will only be able to set
; environment variables that begin with php_ (e.g. php_foo=bar).
; note: if this directive is empty, php will let the user modify any
; environment variable!
; http://php.net/safe-mode-allowed-env-vars
safe_mode_allowed_env_vars = php_
; this directive contains a comma-delimited list of environment variables that
; the end user won't be able to change using putenv(). these variables will be
; protected even if safe_mode_allowed_env_vars is set to allow to change them.
; http://php.net/safe-mode-protected-env-vars
safe_mode_protected_env_vars = ld_library_path
; open_basedir, if set, limits all file operations to the defined directory
; and below. this directive makes most sense if used in a per-directory
; or per-virtualhost web server configuration file. this directive is
; *not* affected by whether safe mode is turned on or off.
; http://php.net/open-basedir
;open_basedir =
; this directive allows you to disable certain functions for security reasons.
; it receives a comma-delimited list of function names. this directive is
; *not* affected by whether safe mode is turned on or off.
; http://php.net/disable-functions
disable_functions =
; this directive allows you to disable certain classes for security reasons.
; it receives a comma-delimited list of class names. this directive is
; *not* affected by whether safe mode is turned on or off.
; http://php.net/disable-classes
disable_classes =
; colors for syntax highlighting mode. anything that's acceptable in
; would work.
; http://php.net/syntax-highlighting
;highlight.string = #dd0000
;highlight.comment = #ff9900
;highlight.keyword = #007700
;highlight.bg = #ffffff
;highlight.default = #0000bb
;highlight.html = #000000
; if enabled, the request will be allowed to complete even if the user aborts
; the request. consider enabling it if executing long requests, which may end up
; being interrupted by the user or a browser timing out. php's default behavior
; is to disable this feature.
; http://php.net/ignore-user-abort
;ignore_user_abort = on
; determines the size of the realpath cache to be used by php. this value should
; be increased on systems where php opens many files to reflect the quantity of
; the file operations performed.
; http://php.net/realpath-cache-size
;realpath_cache_size = 16k
; duration of time, in seconds for which to cache realpath information for a given
; file or directory. for systems with rarely changing files, consider increasing this
; value.
; http://php.net/realpath-cache-ttl
;realpath_cache_ttl = 120
; miscellaneous ;
; decides whether php may expose the fact that it is installed on the server
; (e.g. by adding its signature to the web server header). it is no security
; threat in any way, but it makes it possible to determine whether you use php
; on your server or not.
; http://php.net/expose-php
expose_php = on
; resource limits ;
; maximum execution time of each script, in seconds
; http://php.net/max-execution-time
; note: this directive is hardcoded to 0 for the cli sapi
max_execution_time = 30
; maximum amount of time each script may spend parsing request data. it's a good
; idea to limit this time on productions servers in order to eliminate unexpectedly
; long running scripts.
; note: this directive is hardcoded to -1 for the cli sapi
; default value: -1 (unlimited)
; development value: 60 (60 seconds)
; production value: 60 (60 seconds)
; http://php.net/max-input-time
max_input_time = 60
; maximum input variable nesting level
; http://php.net/max-input-nesting-level
;max_input_nesting_level = 64
; maximum amount of memory a script may consume (128mb)
; http://php.net/memory-limit
memory_limit = 128m
; error handling and logging ;
; this directive informs php of which errors, warnings and notices you would like
; it to take action for. the recommended way of setting values for this
; directive is through the use of the error level constants and bitwise
; operators. the error level constants are below here for convenience as well as
; some common settings and their meanings.
; by default, php is set to take action on all errors, notices and warnings except
; those related to e_notice and e_strict, which together cover best practices and
; recommended coding standards in php. for performance reasons, this is the
; recommend error reporting setting. your production server shouldn't be wasting
; resources complaining about best practices and coding standards. that's what
; development servers and development settings are for.
; note: the php.ini-development file has this setting as e_all | e_strict. this
; means it pretty much reports everything which is exactly what you want during
; development and early testing.
; error level constants:
; e_all - all errors and warnings (includes e_strict as of php 6.0.0)
; e_error - fatal run-time errors
; e_recoverable_error - almost fatal run-time errors
; e_warning - run-time warnings (non-fatal errors)
; e_parse - compile-time parse errors
; e_notice - run-time notices (these are warnings which often result
; from a bug in your code, but it's possible that it was
; intentional (e.g., using an uninitialized variable and
; relying on the fact it's automatically initialized to an
; empty string)
; e_strict - run-time notices, enable to have php suggest changes
; to your code which will ensure the best interoperability
; and forward compatibility of your code
; e_core_error - fatal errors that occur during php's initial startup
; e_core_warning - warnings (non-fatal errors) that occur during php's
; initial startup
; e_compile_error - fatal compile-time errors
; e_compile_warning - compile-time warnings (non-fatal errors)
; e_user_error - user-generated error message
; e_user_warning - user-generated warning message
; e_user_notice - user-generated notice message
; e_deprecated - warn about code that will not work in future versions
; of php
; e_user_deprecated - user-generated deprecation warnings
; common values:
; e_all & ~e_notice (show all errors, except for notices and coding standards warnings.)
; e_all & ~e_notice | e_strict (show all errors, except for notices)
; e_compile_error|e_recoverable_error|e_error|e_core_error (show only errors)
; e_all | e_strict (show all errors, warnings and notices including coding standards.)
; default value: e_all & ~e_notice
; development value: e_all | e_strict
; production value: e_all & ~e_deprecated
; http://php.net/error-reporting
error_reporting = e_all | e_strict
; this directive controls whether or not and where php will output errors,
; notices and warnings too. error output is very useful during development, but
; it could be very dangerous in production environments. depending on the code
; which is triggering the error, sensitive information could potentially leak
; out of your application such as database usernames and passwords or worse.
; it's recommended that errors be logged on production servers rather than
; having the errors sent to stdout.
; possible values:
; off = do not display any errors
; stderr = display errors to stderr (affects only cgi/cli binaries!)
; on or stdout = display errors to stdout
; default value: on
; development value: on
; production value: off
; http://php.net/display-errors
display_errors = on
; the display of errors which occur during php's startup sequence are handled
; separately from display_errors. php's default behavior is to suppress those
; errors from clients. turning the display of startup errors on can be useful in
; debugging configuration problems. but, it's strongly recommended that you
; leave this setting off on production servers.
; default value: off
; development value: on
; production value: off
; http://php.net/display-startup-errors
display_startup_errors = on
; besides displaying errors, php can also log errors to locations such as a
; server-specific log, stderr, or a location specified by the error_log
; directive found below. while errors should not be displayed on productions
; servers they should still be monitored and logging is a great way to do that.
; default value: off
; development value: on
; production value: on
; http://php.net/log-errors
log_errors = on
; set maximum length of log_errors. in error_log information about the source is
; added. the default is 1024 and 0 allows to not apply any maximum length at all.
; http://php.net/log-errors-max-len
log_errors_max_len = 1024
; do not log repeated messages. repeated errors must occur in same file on same
; line unless ignore_repeated_source is set true.
; http://php.net/ignore-repeated-errors
ignore_repeated_errors = off
; ignore source of message when ignoring repeated messages. when this setting
; is on you will not log errors with repeated messages from different files or
; source lines.
; http://php.net/ignore-repeated-source
ignore_repeated_source = off
; if this parameter is set to off, then memory leaks will not be shown (on
; stdout or in the log). this has only effect in a debug compile, and if
; error reporting includes e_warning in the allowed list
; http://php.net/report-memleaks
report_memleaks = on
; this setting is on by default.
;report_zend_debug = 0
; store the last error/warning message in $php_errormsg (boolean). setting this value
; to on can assist in debugging and is appropriate for development servers. it should
; however be disabled on production servers.
; default value: off
; development value: on
; production value: off
; http://php.net/track-errors
track_errors = on
; turn off normal error reporting and emit xml-rpc error xml
; http://php.net/xmlrpc-errors
;xmlrpc_errors = 0
; an xml-rpc faultcode
;xmlrpc_error_number = 0
; when php displays or logs an error, it has the capability of inserting html
; links to documentation related to that error. this directive controls whether
; those html links appear in error messages or not. for performance and security
; reasons, it's recommended you disable this on production servers.
; note: this directive is hardcoded to off for the cli sapi
; default value: on
; development value: on
; production value: off
; http://php.net/html-errors
html_errors = on
; if html_errors is set on php produces clickable error messages that direct
; to a page describing the error or function causing the error in detail.
; you can download a copy of the php manual from http://php.net/docs
; and change docref_root to the base url of your local copy including the
; leading '/'. you must also specify the file extension being used including
; the dot. php's default behavior is to leave these settings empty.
; note: never use this feature for production boxes.
; http://php.net/docref-root
; examples
;docref_root = /phpmanual/
; http://php.net/docref-ext
;docref_ext = .html
; string to output before an error message. php's default behavior is to leave
; this setting blank.
; http://php.net/error-prepend-string
; example:
;error_prepend_string =
; string to output after an error message. php's default behavior is to leave
; this setting blank.
; http://php.net/error-append-string
; example:
;error_append_string =
; log errors to specified file. php's default behavior is to leave this value
; empty.
; http://php.net/error-log
; example:
;error_log = php_errors.log
; log errors to syslog (event log on nt, not valid in windows 95).
;error_log = syslog
; data handling ;
; the separator used in php generated urls to separate arguments.
; php's default setting is &.
; http://php.net/arg-separator.output
; example:
;arg_separator.output = &
; list of separator(s) used by php to parse input urls into variables.
; php's default setting is &.
; note: every character in this directive is considered as separator!
; http://php.net/arg-separator.input
; example:
;arg_separator.input = ;&
; this directive determines which super global arrays are registered when php
; starts up. if the register_globals directive is enabled, it also determines
; what order variables are populated into the global space. g,p,c,e & s are
; abbreviations for the following respective super globals: get, post, cookie,
; env and server. there is a performance penalty paid for the registration of
; these arrays and because env is not as commonly used as the others, env is
; is not recommended on productions servers. you can still get access to
; the environment variables through getenv() should you need to.
; default value: egpcs
; development value: gpcs
; production value: gpcs;
; http://php.net/variables-order
variables_order = gpcs
; this directive determines which super global data (g,p,c,e & s) should
; be registered into the super global array request. if so, it also determines
; the order in which that data is registered. the values for this directive are
; specified in the same manner as the variables_order directive, except one.
; leaving this value empty will cause php to use the value set in the
; variables_order directive. it does not mean it will leave the super globals
; array request empty.
; default value: none
; development value: gp
; production value: gp
; http://php.net/request-order
request_order = gp
; whether or not to register the egpcs variables as global variables. you may
; want to turn this off if you don't want to clutter your scripts' global scope
; with user data.
; you should do your best to write your scripts so that they do not require
; register_globals to be on; using form variables as globals can easily lead
; to possible security problems, if the code is not very well thought of.
; http://php.net/register-globals
register_globals = off
; determines whether the deprecated long $http_*_vars type predefined variables
; are registered by php or not. as they are deprecated, we obviously don't
; recommend you use them. they are on by default for compatibility reasons but
; they are not recommended on production servers.
; default value: on
; development value: off
; production value: off
; http://php.net/register-long-arrays
register_long_arrays = off
; this directive determines whether php registers $argv & $argc each time it
; runs. $argv contains an array of all the arguments passed to php when a script
; is invoked. $argc contains an integer representing the number of arguments
; that were passed when the script was invoked. these arrays are extremely
; useful when running scripts from the command line. when this directive is
; enabled, registering these variables consumes cpu cycles and memory each time
; a script is executed. for performance reasons, this feature should be disabled
; on production servers.
; note: this directive is hardcoded to on for the cli sapi
; default value: on
; development value: off
; production value: off
; http://php.net/register-argc-argv
register_argc_argv = off
; when enabled, the server and env variables are created when they're first
; used (just in time) instead of when the script starts. if these variables
; are not used within a script, having this directive on will result in a
; performance gain. the php directives register_globals, register_long_arrays,
; and register_argc_argv must be disabled for this directive to have any affect.
; http://php.net/auto-globals-jit
auto_globals_jit = on
; maximum size of post data that php will accept.
; http://php.net/post-max-size
post_max_size = 8m
; magic quotes are a preprocessing feature of php where php will attempt to
; escape any character sequences in get, post, cookie and env data which might
; otherwise corrupt data being placed in resources such as databases before
; making that data available to you. because of character encoding issues and
; non-standard sql implementations across many databases, it's not currently
; possible for this feature to be 100% accurate. php's default behavior is to
; enable the feature. we strongly recommend you use the escaping mechanisms
; designed specifically for the database your using instead of relying on this
; feature. also note, this feature has been deprecated as of php 5.3.0 and is
; scheduled for removal in php 6.
; default value: on
; development value: off
; production value: off
; http://php.net/magic-quotes-gpc
magic_quotes_gpc = off
; magic quotes for runtime-generated data, e.g. data from sql, from exec(), etc.
; http://php.net/magic-quotes-runtime
magic_quotes_runtime = off
; use sybase-style magic quotes (escape ' with '' instead of \').
; http://php.net/magic-quotes-sybase
magic_quotes_sybase = off
; automatically add files before php document.
; http://php.net/auto-prepend-file
auto_prepend_file =
; automatically add files after php document.
; http://php.net/auto-append-file
auto_append_file =
; by default, php will output a character encoding using
; the content-type: header. to disable sending of the charset, simply
; set it to be empty.
; php's built-in default is text/html
; http://php.net/default-mimetype
default_mimetype = text/html
; php's default character set is set to empty.
; http://php.net/default-charset
;default_charset = iso-8859-1
; always populate the $http_raw_post_data variable. php's default behavior is
; to disable this feature.
; http://php.net/always-populate-raw-post-data
;always_populate_raw_post_data = on
; paths and directories ;
; unix: /path1:/path2
;include_path = .:/php/includes
; windows: \path1;\path2
;include_path = .;c:\php\includes
; php's default setting for include_path is .;/path/to/php/pear
; http://php.net/include-path
; the root of the php pages, used only if nonempty.
; if php was not compiled with force_redirect, you should set doc_root
; if you are running php as a cgi under any web server (other than iis)
; see documentation for security issues. the alternate is to use the
; cgi.force_redirect configuration below
; http://php.net/doc-root
doc_root =
; the directory under which php opens the script using /~username used only
; if nonempty.
; http://php.net/user-dir
user_dir =
; directory in which the loadable extensions (modules) reside.
; http://php.net/extension-dir
;extension_dir = ./
; on windows:
;下面这句告诉php扩展模块的所在位置 点我返回
extension_dir = d:/amp/php/ext
; whether or not to enable the dl() function. the dl() function does not work
; properly in multithreaded servers, such as iis or zeus, and is automatically
; disabled on them.
; http://php.net/enable-dl
enable_dl = off
; cgi.force_redirect is necessary to provide security running php as a cgi under
; most web servers. left undefined, php turns this on by default. you can
; turn it off here at your own risk
; **you can safely turn this off for iis, in fact, you must.**
; http://php.net/cgi.force-redirect
;cgi.force_redirect = 1
; if cgi.nph is enabled it will force cgi to always sent status: 200 with
; every request. php's default behavior is to disable this feature.
;cgi.nph = 1
; if cgi.force_redirect is turned on, and you are not running under apache or netscape
; (iplanet) web servers, you may need to set an environment variable name that php
; will look for to know it is ok to continue execution. setting this variable may
; cause security issues, know what you are doing first.
; http://php.net/cgi.redirect-status-env
;cgi.redirect_status_env = ;
; cgi.fix_pathinfo provides *real* path_info/path_translated support for cgi. php's
; previous behaviour was to set path_translated to script_filename, and to not grok
; what path_info is. for more information on path_info, see the cgi specs. setting
; this to 1 will cause php cgi to fix its paths to conform to the spec. a setting
; of zero causes php to behave as before. default is 1. you should fix your scripts
; to use script_filename rather than path_translated.
; http://php.net/cgi.fix-pathinfo
;cgi.fix_pathinfo=1
; fastcgi under iis (on winnt based os) supports the ability to impersonate
; security tokens of the calling client. this allows iis to define the
; security context that the request runs under. mod_fastcgi under apache
; does not currently support this feature (03/17/2002)
; set to 1 if running under iis. default is zero.
; http://php.net/fastcgi.impersonate
;fastcgi.impersonate = 1;
; disable logging through fastcgi connection. php's default behavior is to enable
; this feature.
;fastcgi.logging = 0
; cgi.rfc2616_headers configuration option tells php what type of headers to
; use when sending http response code. if it's set 0 php sends status: header that
; is supported by apache. when this option is set to 1 php will send
; rfc2616 compliant header.
; default is zero.
; http://php.net/cgi.rfc2616-headers
;cgi.rfc2616_headers = 0
; file uploads ;
; whether to allow http file uploads.
; http://php.net/file-uploads
file_uploads = on
; temporary directory for http uploaded files (will use system default if not
; specified).
; http://php.net/upload-tmp-dir
;upload_tmp_dir =
; maximum allowed size for uploaded files.
; http://php.net/upload-max-filesize
upload_max_filesize = 2m
; maximum number of files that can be uploaded via a single request
max_file_uploads = 20
; fopen wrappers ;
; whether to allow the treatment of urls (like http:// or ftp://) as files.
; http://php.net/allow-url-fopen
allow_url_fopen = on
; whether to allow include/require to open urls (like http:// or ftp://) as files.
; http://php.net/allow-url-include
allow_url_include = off
; define the anonymous ftp password (your email address). php's default setting
; for this is empty.
; http://php.net/from
;from=john@doe.com
; define the user-agent string. php's default setting for this is empty.
; http://php.net/user-agent
;user_agent=php
; default timeout for socket based streams (seconds)
; http://php.net/default-socket-timeout
default_socket_timeout = 60
; if your scripts have to deal with files from macintosh systems,
; or you are running on a mac and need to deal with files from
; unix or win32 systems, setting this flag will cause php to
; automatically detect the eol character in those files so that
; fgets() and file() will work regardless of the source of the file.
; http://php.net/auto-detect-line-endings
;auto_detect_line_endings = off
; dynamic extensions ;
; if you wish to have an extension loaded automatically, use the following
; syntax:
; extension=modulename.extension
; for example, on windows:
; extension=msql.dll
; ... or under unix:
; extension=msql.so
; ... or with a path:
; extension=/path/to/extension/msql.so
; if you only provide the name of the extension, php will look for it in its
; default extension directory.
; windows extensions
; note that odbc support is built in, so no dll is needed for it.
; note that many dll files are located in the extensions/ (php 4) ext/ (php 5)
; extension folders as well as the separate pecl dll download (php 5).
; be sure to appropriately set the extension_dir directive.
;extension=php_bz2.dll
extension=php_curl.dll ;引入这个模块时,apache2.2会报错,找不到相应模块
;extension=php_fileinfo.dll
extension=php_gd2.dll ;引入画图模块
;extension=php_gettext.dll
;extension=php_gmp.dll
;extension=php_intl.dll
;extension=php_imap.dll
;extension=php_interbase.dll
;extension=php_ldap.dll
;extension=php_mbstring.dll
;extension=php_exif.dll ; must be after mbstring as it depends on it
extension=php_mysql.dll ;引入mysql模块
extension=php_mysqli.dll ;引入mysql模块
;extension=php_oci8.dll ; use with oracle 10gr2 instant client
;extension=php_oci8_11g.dll ; use with oracle 11g instant client
;extension=php_openssl.dll
;extension=php_pdo_firebird.dll
;extension=php_pdo_mssql.dll
;extension=php_pdo_mysql.dll
;extension=php_pdo_oci.dll
;extension=php_pdo_odbc.dll
;extension=php_pdo_pgsql.dll
;extension=php_pdo_sqlite.dll
;extension=php_pgsql.dll
;extension=php_phar.dll
;extension=php_pspell.dll
;extension=php_shmop.dll
; the mibs data available in the php distribution must be installed.
; see http://www.php.net/manual/en/snmp.installation.php
;extension=php_snmp.dll
;extension=php_soap.dll
;extension=php_sockets.dll
;extension=php_sqlite.dll
;extension=php_sqlite3.dll
;extension=php_sybase_ct.dll
;extension=php_tidy.dll
;extension=php_xmlrpc.dll
;extension=php_xsl.dll
;extension=php_zip.dll
; module settings ;
[date]
; defines the default timezone used by the date functions
; http://php.net/date.timezone 点我返回
date.timezone = prc
; http://php.net/date.default-latitude
;date.default_latitude = 31.7667
; http://php.net/date.default-longitude
;date.default_longitude = 35.2333
; http://php.net/date.sunrise-zenith
;date.sunrise_zenith = 90.583333
; http://php.net/date.sunset-zenith
;date.sunset_zenith = 90.583333
[filter]
; http://php.net/filter.default
;filter.default = unsafe_raw
; http://php.net/filter.default-flags
;filter.default_flags =
[iconv]
;iconv.input_encoding = iso-8859-1
;iconv.internal_encoding = iso-8859-1
;iconv.output_encoding = iso-8859-1
[intl]
;intl.default_locale =
; this directive allows you to produce php errors when some error
; happens within intl functions. the value is the level of the error produced.
; default is 0, which does not produce any errors.
;intl.error_level = e_warning
[sqlite]
; http://php.net/sqlite.assoc-case
;sqlite.assoc_case = 0
[sqlite3]
;sqlite3.extension_dir =
[pcre]
;pcre library backtracking limit.
; http://php.net/pcre.backtrack-limit
;pcre.backtrack_limit=100000
;pcre library recursion limit.
;please note that if you set this value to a high number you may consume all
;the available process stack and eventually crash php (due to reaching the
;stack size limit imposed by the operating system).
; http://php.net/pcre.recursion-limit
;pcre.recursion_limit=100000
[pdo]
; whether to pool odbc connections. can be one of strict, relaxed or off
; http://php.net/pdo-odbc.connection-pooling
;pdo_odbc.connection_pooling=strict
;pdo_odbc.db2_instance_name
[pdo_mysql]
; if mysqlnd is used: number of cache slots for the internal result set cache
; http://php.net/pdo_mysql.cache_size
pdo_mysql.cache_size = 2000
; default socket name for local mysql connects. if empty, uses the built-in
; mysql defaults.
; http://php.net/pdo_mysql.default-socket
pdo_mysql.default_socket=
[phar]
; http://php.net/phar.readonly
;phar.readonly = on
; http://php.net/phar.require-hash
;phar.require_hash = on
;phar.cache_list =
[syslog]
; whether or not to define the various syslog variables (e.g. $log_pid,
; $log_cron, etc.). turning it off is a good idea performance-wise. in
; runtime, you can define these variables by calling define_syslog_variables().
; http://php.net/define-syslog-variables
define_syslog_variables = off
[mail function]
; for win32 only.
; http://php.net/smtp
smtp = localhost
; http://php.net/smtp-port
smtp_port = 25
; for win32 only.
; http://php.net/sendmail-from
;sendmail_from = me@example.com
; for unix only. you may supply arguments as well (default: sendmail -t -i).
; http://php.net/sendmail-path
;sendmail_path =
; force the addition of the specified parameters to be passed as extra parameters
; to the sendmail binary. these parameters will always replace the value of
; the 5th parameter to mail(), even in safe mode.
;mail.force_extra_parameters =
; add x-php-originating-script: that will include uid of the script followed by the filename
mail.add_x_header = on
; the path to a log file that will log all mail() calls. log entries include
; the full path of the script, line number, to address and headers.
;mail.log =
[sql]
; http://php.net/sql.safe-mode
sql.safe_mode = off
[odbc]
; http://php.net/odbc.default-db
;odbc.default_db = not yet implemented
; http://php.net/odbc.default-user
;odbc.default_user = not yet implemented
; http://php.net/odbc.default-pw
;odbc.default_pw = not yet implemented
; controls the odbc cursor model.
; default: sql_cursor_static (default).
;odbc.default_cursortype
; allow or prevent persistent links.
; http://php.net/odbc.allow-persistent
odbc.allow_persistent = on
; check that a connection is still valid before reuse.
; http://php.net/odbc.check-persistent
odbc.check_persistent = on
; maximum number of persistent links. -1 means no limit.
; http://php.net/odbc.max-persistent
odbc.max_persistent = -1
; maximum number of links (persistent + non-persistent). -1 means no limit.
; http://php.net/odbc.max-links
odbc.max_links = -1
; handling of long fields. returns number of bytes to variables. 0 means
; passthru.
; http://php.net/odbc.defaultlrl
odbc.defaultlrl = 4096
; handling of binary data. 0 means passthru, 1 return as is, 2 convert to char.
; see the documentation on odbc_binmode and odbc_longreadlen for an explanation
; of odbc.defaultlrl and odbc.defaultbinmode
; http://php.net/odbc.defaultbinmode
odbc.defaultbinmode = 1
;birdstep.max_links = -1
[interbase]
; allow or prevent persistent links.
ibase.allow_persistent = 1
; maximum number of persistent links. -1 means no limit.
ibase.max_persistent = -1
; maximum number of links (persistent + non-persistent). -1 means no limit.
ibase.max_links = -1
; default database name for ibase_connect().
;ibase.default_db =
; default username for ibase_connect().
;ibase.default_user =
; default password for ibase_connect().
;ibase.default_password =
; default charset for ibase_connect().
;ibase.default_charset =
; default timestamp format.
ibase.timestampformat = %y-%m-%d %h:%m:%s
; default date format.
ibase.dateformat = %y-%m-%d
; default time format.
ibase.timeformat = %h:%m:%s
[mysql]
; allow accessing, from php's perspective, local files with load data statements
; http://php.net/mysql.allow_local_infile
mysql.allow_local_infile = on
; allow or prevent persistent links.
; http://php.net/mysql.allow-persistent
mysql.allow_persistent = on
; if mysqlnd is used: number of cache slots for the internal result set cache
; http://php.net/mysql.cache_size
mysql.cache_size = 2000
; maximum number of persistent links. -1 means no limit.
; http://php.net/mysql.max-persistent
mysql.max_persistent = -1
; maximum number of links (persistent + non-persistent). -1 means no limit.
; http://php.net/mysql.max-links
mysql.max_links = -1
; default port number for mysql_connect(). if unset, mysql_connect() will use
; the $mysql_tcp_port or the mysql-tcp entry in /etc/services or the
; compile-time value defined mysql_port (in that order). win32 will only look
; at mysql_port.
; http://php.net/mysql.default-port
mysql.default_port =
; default socket name for local mysql connects. if empty, uses the built-in
; mysql defaults.
; http://php.net/mysql.default-socket
mysql.default_socket =
; default host for mysql_connect() (doesn't apply in safe mode).
; http://php.net/mysql.default-host
mysql.default_host =
; default user for mysql_connect() (doesn't apply in safe mode).
; http://php.net/mysql.default-user
mysql.default_user =
; default password for mysql_connect() (doesn't apply in safe mode).
; note that this is generally a *bad* idea to store passwords in this file.
; *any* user with php access can run 'echo get_cfg_var(mysql.default_password)
; and reveal this password! and of course, any users with read access to this
; file will be able to reveal the password as well.
; http://php.net/mysql.default-password
mysql.default_password =
; maximum time (in seconds) for connect timeout. -1 means no limit
; http://php.net/mysql.connect-timeout
mysql.connect_timeout = 60
; trace mode. when trace_mode is active (=on), warnings for table/index scans and
; sql-errors will be displayed.
; http://php.net/mysql.trace-mode
mysql.trace_mode = off
[mysqli]
; maximum number of persistent links. -1 means no limit.
; http://php.net/mysqli.max-persistent
mysqli.max_persistent = -1
; maximum number of links. -1 means no limit.
; http://php.net/mysqli.max-links
mysqli.max_links = -1
; if mysqlnd is used: number of cache slots for the internal result set cache
; http://php.net/mysqli.cache_size
mysqli.cache_size = 2000
; default port number for mysqli_connect(). if unset, mysqli_connect() will use
; the $mysql_tcp_port or the mysql-tcp entry in /etc/services or the
; compile-time value defined mysql_port (in that order). win32 will only look
; at mysql_port.
; http://php.net/mysqli.default-port
mysqli.default_port = 3306
; default socket name for local mysql connects. if empty, uses the built-in
; mysql defaults.
; http://php.net/mysqli.default-socket
mysqli.default_socket =
; default host for mysql_connect() (doesn't apply in safe mode).
; http://php.net/mysqli.default-host
mysqli.default_host =
; default user for mysql_connect() (doesn't apply in safe mode).
; http://php.net/mysqli.default-user
mysqli.default_user =
; default password for mysqli_connect() (doesn't apply in safe mode).
; note that this is generally a *bad* idea to store passwords in this file.
; *any* user with php access can run 'echo get_cfg_var(mysqli.default_pw)
; and reveal this password! and of course, any users with read access to this
; file will be able to reveal the password as well.
; http://php.net/mysqli.default-pw
mysqli.default_pw =
; allow or prevent reconnect
mysqli.reconnect = off
[mysqlnd]
; enable / disable collection of general statstics by mysqlnd which can be
; used to tune and monitor mysql operations.
; http://php.net/mysqlnd.collect_statistics
mysqlnd.collect_statistics = on
; enable / disable collection of memory usage statstics by mysqlnd which can be
; used to tune and monitor mysql operations.
; http://php.net/mysqlnd.collect_memory_statistics
mysqlnd.collect_memory_statistics = on
; size of a pre-allocated buffer used when sending commands to mysql in bytes.
; http://php.net/mysqlnd.net_cmd_buffer_size
;mysqlnd.net_cmd_buffer_size = 2048
; size of a pre-allocated buffer used for reading data sent by the server in
; bytes.
; http://php.net/mysqlnd.net_read_buffer_size
;mysqlnd.net_read_buffer_size = 32768
[oci8]
; connection: enables privileged connections using external
; credentials (oci_sysoper, oci_sysdba)
; http://php.net/oci8.privileged-connect
;oci8.privileged_connect = off
; connection: the maximum number of persistent oci8 connections per
; process. using -1 means no limit.
; http://php.net/oci8.max-persistent
;oci8.max_persistent = -1
; connection: the maximum number of seconds a process is allowed to
; maintain an idle persistent connection. using -1 means idle
; persistent connections will be maintained forever.
; http://php.net/oci8.persistent-timeout
;oci8.persistent_timeout = -1
; connection: the number of seconds that must pass before issuing a
; ping during oci_pconnect() to check the connection validity. when
; set to 0, each oci_pconnect() will cause a ping. using -1 disables
; pings completely.
; http://php.net/oci8.ping-interval
;oci8.ping_interval = 60
; connection: set this to a user chosen connection class to be used
; for all pooled server requests with oracle 11g database resident
; connection pooling (drcp). to use drcp, this value should be set to
; the same string for all web servers running the same application,
; the database pool must be configured, and the connection string must
; specify to use a pooled server.
;oci8.connection_class =
; high availability: using on lets php receive fast application
; notification (fan) events generated when a database node fails. the
; database must also be configured to post fan events.
;oci8.events = off
; tuning: this option enables statement caching, and specifies how
; many statements to cache. using 0 disables statement caching.
; http://php.net/oci8.statement-cache-size
;oci8.statement_cache_size = 20
; tuning: enables statement prefetching and sets the default number of
; rows that will be fetched automatically after statement execution.
; http://php.net/oci8.default-prefetch
;oci8.default_prefetch = 100
; compatibility. using on means oci_close() will not close
; oci_connect() and oci_new_connect() connections.
; http://php.net/oci8.old-oci-close-semantics
;oci8.old_oci_close_semantics = off
[postgressql]
; allow or prevent persistent links.
; http://php.net/pgsql.allow-persistent
pgsql.allow_persistent = on
; detect broken persistent links always with pg_pconnect().
; auto reset feature requires a little overheads.
; http://php.net/pgsql.auto-reset-persistent
pgsql.auto_reset_persistent = off
; maximum number of persistent links. -1 means no limit.
; http://php.net/pgsql.max-persistent
pgsql.max_persistent = -1
; maximum number of links (persistent+non persistent). -1 means no limit.
; http://php.net/pgsql.max-links
pgsql.max_links = -1
; ignore postgresql backends notice message or not.
; notice message logging require a little overheads.
; http://php.net/pgsql.ignore-notice
pgsql.ignore_notice = 0
; log postgresql backends notice message or not.
; unless pgsql.ignore_notice=0, module cannot log notice message.
; http://php.net/pgsql.log-notice
pgsql.log_notice = 0
[sybase-ct]
; allow or prevent persistent links.
; http://php.net/sybct.allow-persistent
sybct.allow_persistent = on
; maximum number of persistent links. -1 means no limit.
; http://php.net/sybct.max-persistent
sybct.max_persistent = -1
; maximum number of links (persistent + non-persistent). -1 means no limit.
; http://php.net/sybct.max-links
sybct.max_links = -1
; minimum server message severity to display.
; http://php.net/sybct.min-server-severity
sybct.min_server_severity = 10
; minimum client message severity to display.
; http://php.net/sybct.min-client-severity
sybct.min_client_severity = 10
; set per-context timeout
; http://php.net/sybct.timeout
;sybct.timeout=
;sybct.packet_size
; the maximum time in seconds to wait for a connection attempt to succeed before returning failure.
; default: one minute
;sybct.login_timeout=
; the name of the host you claim to be connecting from, for display by sp_who.
; default: none
;sybct.hostname=
; allows you to define how often deadlocks are to be retried. -1 means forever.
; default: 0
;sybct.deadlock_retry_count=
[bcmath]
; number of decimal digits for all bcmath functions.
; http://php.net/bcmath.scale
bcmath.scale = 0
[browscap]
; http://php.net/browscap
;browscap = extra/browscap.ini
[session]
; handler used to store/retrieve data.
; http://php.net/session.save-handler
session.save_handler = files
; argument passed to save_handler. in the case of files, this is the path
; where data files are stored. note: windows users have to change this
; variable in order to use php's session functions.
; the path can be defined as:
; session.save_path = n;/path
; where n is an integer. instead of storing all the session files in
; /path, what this will do is use subdirectories n-levels deep, and
; store the session data in those directories. this is useful if you
; or your os have problems with lots of files in one directory, and is
; a more efficient layout for servers that handle lots of sessions.
; note 1: php will not create this directory structure automatically.
; you can use the script in the ext/session dir for that purpose.
; note 2: see the section on garbage collection below if you choose to
; use subdirectories for session storage
; the file storage module creates files using mode 600 by default.
; you can change that by using
; session.save_path = n;mode;/path
; where mode is the octal representation of the mode. note that this
; does not overwrite the process's umask.
; http://php.net/session.save-path
;session.save_path = /tmp
; whether to use cookies.
; http://php.net/session.use-cookies
session.use_cookies = 1
; http://php.net/session.cookie-secure
;session.cookie_secure =
; this option forces php to fetch and use a cookie for storing and maintaining
; the session id. we encourage this operation as it's very helpful in combatting
; session hijacking when not specifying and managing your own session id. it is
; not the end all be all of session hijacking defense, but it's a good start.
; http://php.net/session.use-only-cookies
session.use_only_cookies = 1
; name of the session (used as cookie name).
; http://php.net/session.name
session.name = phpsessid
; initialize session on request startup.
; http://php.net/session.auto-start
session.auto_start = 0
; lifetime in seconds of cookie or, if 0, until browser is restarted.
; http://php.net/session.cookie-lifetime
session.cookie_lifetime = 0
; the path for which the cookie is valid.
; http://php.net/session.cookie-path
session.cookie_path = /
; the domain for which the cookie is valid.
; http://php.net/session.cookie-domain
session.cookie_domain =
; whether or not to add the httponly flag to the cookie, which makes it inaccessible to browser scripting languages such as javascript.
; http://php.net/session.cookie-httponly
session.cookie_httponly =
; handler used to serialize data. php is the standard serializer of php.
; http://php.net/session.serialize-handler
session.serialize_handler = php
; defines the probability that the 'garbage collection' process is started
; on every session initialization. the probability is calculated by using
; gc_probability/gc_divisor. where session.gc_probability is the numerator
; and gc_divisor is the denominator in the equation. setting this value to 1
; when the session.gc_divisor value is 100 will give you approximately a 1% chance
; the gc will run on any give request.
; default value: 1
; development value: 1
; production value: 1
; http://php.net/session.gc-probability
session.gc_probability = 1
; defines the probability that the 'garbage collection' process is started on every
; session initialization. the probability is calculated by using the following equation:
; gc_probability/gc_divisor. where session.gc_probability is the numerator and
; session.gc_divisor is the denominator in the equation. setting this value to 1
; when the session.gc_divisor value is 100 will give you approximately a 1% chance
; the gc will run on any give request. increasing this value to 1000 will give you
; a 0.1% chance the gc will run on any give request. for high volume production servers,
; this is a more efficient approach.
; default value: 100
; development value: 1000
; production value: 1000
; http://php.net/session.gc-divisor
session.gc_divisor = 1000
; after this number of seconds, stored data will be seen as 'garbage' and
; cleaned up by the garbage collection process.
; http://php.net/session.gc-maxlifetime
session.gc_maxlifetime = 1440
; note: if you are using the subdirectory option for storing session files
; (see session.save_path above), then garbage collection does *not*
; happen automatically. you will need to do your own garbage
; collection through a shell script, cron entry, or some other method.
; for example, the following script would is the equivalent of
; setting session.gc_maxlifetime to 1440 (1440 seconds = 24 minutes):
; find /path/to/sessions -cmin +24 | xargs rm
; php 4.2 and less have an undocumented feature/bug that allows you to
; to initialize a session variable in the global scope, even when register_globals
; is disabled. php 4.3 and later will warn you, if this feature is used.
; you can disable the feature and the warning separately. at this time,
; the warning is only displayed, if bug_compat_42 is enabled. this feature
; introduces some serious security problems if not handled correctly. it's
; recommended that you do not use this feature on production servers. but you
; should enable this on development servers and enable the warning as well. if you
; do not enable the feature on development servers, you won't be warned when it's
; used and debugging errors caused by this can be difficult to track down.
; default value: on
; development value: on
; production value: off
; http://php.net/session.bug-compat-42
session.bug_compat_42 = on
; this setting controls whether or not you are warned by php when initializing a
; session value into the global space. session.bug_compat_42 must be enabled before
; these warnings can be issued by php. see the directive above for more information.
; default value: on
; development value: on
; production value: off
; http://php.net/session.bug-compat-warn
session.bug_compat_warn = on
; check http referer to invalidate externally stored urls containing ids.
; http_referer has to contain this substring for the session to be
; considered as valid.
; http://php.net/session.referer-check
session.referer_check =
; how many bytes to read from the file.
; http://php.net/session.entropy-length
session.entropy_length = 0
; specified here to create the session id.
; http://php.net/session.entropy-file
; on systems that don't have /dev/urandom /dev/arandom can be used
; on windows, setting the entropy_length setting will activate the
; windows random source (using the cryptoapi)
;session.entropy_file = /dev/urandom
session.entropy_file =
; set to {nocache,private,public,} to determine http caching aspects
;