1 |
slords |
1.1 |
[PHP] |
2 |
|
|
|
3 |
|
|
;;;;;;;;;;;;;;;;;;; |
4 |
|
|
; About php.ini ; |
5 |
|
|
;;;;;;;;;;;;;;;;;;; |
6 |
|
|
; This file controls many aspects of PHP's behavior. In order for PHP to |
7 |
|
|
; read it, it must be named 'php.ini'. PHP looks for it in the current |
8 |
|
|
; working directory, in the path designated by the environment variable |
9 |
|
|
; PHPRC, and in the path that was defined in compile time (in that order). |
10 |
|
|
; Under Windows, the compile-time path is the Windows directory. The |
11 |
|
|
; path in which the php.ini file is looked for can be overridden using |
12 |
|
|
; the -c argument in command line mode. |
13 |
|
|
; |
14 |
|
|
; The syntax of the file is extremely simple. Whitespace and Lines |
15 |
|
|
; beginning with a semicolon are silently ignored (as you probably guessed). |
16 |
|
|
; Section headers (e.g. [Foo]) are also silently ignored, even though |
17 |
|
|
; they might mean something in the future. |
18 |
|
|
; |
19 |
|
|
; Directives are specified using the following syntax: |
20 |
|
|
; directive = value |
21 |
|
|
; Directive names are *case sensitive* - foo=bar is different from FOO=bar. |
22 |
|
|
; |
23 |
|
|
; The value can be a string, a number, a PHP constant (e.g. E_ALL or M_PI), one |
24 |
|
|
; of the INI constants (On, Off, True, False, Yes, No and None) or an expression |
25 |
|
|
; (e.g. E_ALL & ~E_NOTICE), or a quoted string ("foo"). |
26 |
|
|
; |
27 |
|
|
; Expressions in the INI file are limited to bitwise operators and parentheses: |
28 |
|
|
; | bitwise OR |
29 |
|
|
; & bitwise AND |
30 |
|
|
; ~ bitwise NOT |
31 |
|
|
; ! boolean NOT |
32 |
|
|
; |
33 |
|
|
; Boolean flags can be turned on using the values 1, On, True or Yes. |
34 |
|
|
; They can be turned off using the values 0, Off, False or No. |
35 |
|
|
; |
36 |
|
|
; An empty string can be denoted by simply not writing anything after the equal |
37 |
|
|
; sign, or by using the None keyword: |
38 |
|
|
; |
39 |
|
|
; foo = ; sets foo to an empty string |
40 |
|
|
; foo = none ; sets foo to an empty string |
41 |
|
|
; foo = "none" ; sets foo to the string 'none' |
42 |
|
|
; |
43 |
|
|
; If you use constants in your value, and these constants belong to a |
44 |
|
|
; dynamically loaded extension (either a PHP extension or a Zend extension), |
45 |
|
|
; you may only use these constants *after* the line that loads the extension. |
46 |
|
|
; |
47 |
|
|
; |
48 |
|
|
;;;;;;;;;;;;;;;;;;; |
49 |
|
|
; About this file ; |
50 |
|
|
;;;;;;;;;;;;;;;;;;; |
51 |
|
|
; This is the recommended, PHP 5-style version of the php.ini-dist file. It |
52 |
|
|
; sets some non standard settings, that make PHP more efficient, more secure, |
53 |
|
|
; and encourage cleaner coding. |
54 |
|
|
; |
55 |
|
|
; The price is that with these settings, PHP may be incompatible with some |
56 |
|
|
; applications, and sometimes, more difficult to develop with. Using this |
57 |
|
|
; file is warmly recommended for production sites. As all of the changes from |
58 |
|
|
; the standard settings are thoroughly documented, you can go over each one, |
59 |
|
|
; and decide whether you want to use it or not. |
60 |
|
|
; |
61 |
|
|
; For general information about the php.ini file, please consult the php.ini-dist |
62 |
|
|
; file, included in your PHP distribution. |
63 |
|
|
; |
64 |
|
|
; This file is different from the php.ini-dist file in the fact that it features |
65 |
|
|
; different values for several directives, in order to improve performance, while |
66 |
|
|
; possibly breaking compatibility with the standard out-of-the-box behavior of |
67 |
|
|
; PHP. Please make sure you read what's different, and modify your scripts |
68 |
|
|
; accordingly, if you decide to use this file instead. |
69 |
|
|
; |
70 |
|
|
; - register_long_arrays = Off [Performance] |
71 |
|
|
; Disables registration of the older (and deprecated) long predefined array |
72 |
|
|
; variables ($HTTP_*_VARS). Instead, use the superglobals that were |
73 |
|
|
; introduced in PHP 4.1.0 |
74 |
|
|
; - display_errors = Off [Security] |
75 |
|
|
; With this directive set to off, errors that occur during the execution of |
76 |
|
|
; scripts will no longer be displayed as a part of the script output, and thus, |
77 |
|
|
; will no longer be exposed to remote users. With some errors, the error message |
78 |
|
|
; content may expose information about your script, web server, or database |
79 |
|
|
; server that may be exploitable for hacking. Production sites should have this |
80 |
|
|
; directive set to off. |
81 |
|
|
; - log_errors = On [Security] |
82 |
|
|
; This directive complements the above one. Any errors that occur during the |
83 |
|
|
; execution of your script will be logged (typically, to your server's error log, |
84 |
|
|
; but can be configured in several ways). Along with setting display_errors to off, |
85 |
|
|
; this setup gives you the ability to fully understand what may have gone wrong, |
86 |
|
|
; without exposing any sensitive information to remote users. |
87 |
|
|
; - output_buffering = 4096 [Performance] |
88 |
|
|
; Set a 4KB output buffer. Enabling output buffering typically results in less |
89 |
|
|
; writes, and sometimes less packets sent on the wire, which can often lead to |
90 |
|
|
; better performance. The gain this directive actually yields greatly depends |
91 |
|
|
; on which Web server you're working with, and what kind of scripts you're using. |
92 |
|
|
; - register_argc_argv = Off [Performance] |
93 |
|
|
; Disables registration of the somewhat redundant $argv and $argc global |
94 |
|
|
; variables. |
95 |
|
|
; - magic_quotes_gpc = Off [Performance] |
96 |
|
|
; Input data is no longer escaped with slashes so that it can be sent into |
97 |
|
|
; SQL databases without further manipulation. Instead, you should use the |
98 |
|
|
; function addslashes() on each input element you wish to send to a database. |
99 |
|
|
; - variables_order = "GPCS" [Performance] |
100 |
|
|
; The environment variables are not hashed into the $_ENV. To access |
101 |
|
|
; environment variables, you can use getenv() instead. |
102 |
|
|
; - error_reporting = E_ALL [Code Cleanliness, Security(?)] |
103 |
|
|
; By default, PHP suppresses errors of type E_NOTICE. These error messages |
104 |
|
|
; are emitted for non-critical errors, but that could be a symptom of a bigger |
105 |
|
|
; problem. Most notably, this will cause error messages about the use |
106 |
|
|
; of uninitialized variables to be displayed. |
107 |
|
|
; - allow_call_time_pass_reference = Off [Code cleanliness] |
108 |
|
|
; It's not possible to decide to force a variable to be passed by reference |
109 |
|
|
; when calling a function. The PHP 4 style to do this is by making the |
110 |
|
|
; function require the relevant argument by reference. |
111 |
|
|
|
112 |
|
|
;;;;;;;;;;;;;;;;;;;; |
113 |
|
|
; Language Options ; |
114 |
|
|
;;;;;;;;;;;;;;;;;;;; |
115 |
|
|
|
116 |
|
|
; Enable the PHP scripting language engine under Apache. |
117 |
|
|
engine = On |
118 |
|
|
|
119 |
|
|
; Enable compatibility mode with Zend Engine 1 (PHP 4.x) |
120 |
|
|
zend.ze1_compatibility_mode = Off |
121 |
|
|
|
122 |
|
|
; Allow the <? tag. Otherwise, only <?php and <script> tags are recognized. |
123 |
|
|
; NOTE: Using short tags should be avoided when developing applications or |
124 |
|
|
; libraries that are meant for redistribution, or deployment on PHP |
125 |
|
|
; servers which are not under your control, because short tags may not |
126 |
|
|
; be supported on the target server. For portable, redistributable code, |
127 |
|
|
; be sure not to use short tags. |
128 |
|
|
short_open_tag = On |
129 |
|
|
|
130 |
|
|
; Allow ASP-style <% %> tags. |
131 |
|
|
asp_tags = Off |
132 |
|
|
|
133 |
|
|
; The number of significant digits displayed in floating point numbers. |
134 |
|
|
precision = 14 |
135 |
|
|
|
136 |
|
|
; Enforce year 2000 compliance (will cause problems with non-compliant browsers) |
137 |
|
|
y2k_compliance = On |
138 |
|
|
|
139 |
|
|
; Output buffering allows you to send header lines (including cookies) even |
140 |
|
|
; after you send body content, at the price of slowing PHP's output layer a |
141 |
|
|
; bit. You can enable output buffering during runtime by calling the output |
142 |
|
|
; buffering functions. You can also enable output buffering for all files by |
143 |
|
|
; setting this directive to On. If you wish to limit the size of the buffer |
144 |
|
|
; to a certain size - you can use a maximum number of bytes instead of 'On', as |
145 |
|
|
; a value for this directive (e.g., output_buffering=4096). |
146 |
|
|
output_buffering = 4096 |
147 |
|
|
|
148 |
|
|
; You can redirect all of the output of your scripts to a function. For |
149 |
|
|
; example, if you set output_handler to "mb_output_handler", character |
150 |
|
|
; encoding will be transparently converted to the specified encoding. |
151 |
|
|
; Setting any output handler automatically turns on output buffering. |
152 |
|
|
; Note: People who wrote portable scripts should not depend on this ini |
153 |
|
|
; directive. Instead, explicitly set the output handler using ob_start(). |
154 |
|
|
; Using this ini directive may cause problems unless you know what script |
155 |
|
|
; is doing. |
156 |
|
|
; Note: You cannot use both "mb_output_handler" with "ob_iconv_handler" |
157 |
|
|
; and you cannot use both "ob_gzhandler" and "zlib.output_compression". |
158 |
|
|
; Note: output_handler must be empty if this is set 'On' !!!! |
159 |
|
|
; Instead you must use zlib.output_handler. |
160 |
|
|
;output_handler = |
161 |
|
|
|
162 |
|
|
; Transparent output compression using the zlib library |
163 |
|
|
; Valid values for this option are 'off', 'on', or a specific buffer size |
164 |
|
|
; to be used for compression (default is 4KB) |
165 |
|
|
; Note: Resulting chunk size may vary due to nature of compression. PHP |
166 |
|
|
; outputs chunks that are few hundreds bytes each as a result of |
167 |
|
|
; compression. If you prefer a larger chunk size for better |
168 |
|
|
; performance, enable output_buffering in addition. |
169 |
|
|
; Note: You need to use zlib.output_handler instead of the standard |
170 |
|
|
; output_handler, or otherwise the output will be corrupted. |
171 |
|
|
zlib.output_compression = Off |
172 |
|
|
;zlib.output_compression_level = -1 |
173 |
|
|
|
174 |
|
|
; You cannot specify additional output handlers if zlib.output_compression |
175 |
|
|
; is activated here. This setting does the same as output_handler but in |
176 |
|
|
; a different order. |
177 |
|
|
;zlib.output_handler = |
178 |
|
|
|
179 |
|
|
; Implicit flush tells PHP to tell the output layer to flush itself |
180 |
|
|
; automatically after every output block. This is equivalent to calling the |
181 |
|
|
; PHP function flush() after each and every call to print() or echo() and each |
182 |
|
|
; and every HTML block. Turning this option on has serious performance |
183 |
|
|
; implications and is generally recommended for debugging purposes only. |
184 |
|
|
implicit_flush = Off |
185 |
|
|
|
186 |
|
|
; The unserialize callback function will be called (with the undefined class' |
187 |
|
|
; name as parameter), if the unserializer finds an undefined class |
188 |
|
|
; which should be instantiated. |
189 |
|
|
; A warning appears if the specified function is not defined, or if the |
190 |
|
|
; function doesn't include/implement the missing class. |
191 |
|
|
; So only set this entry, if you really want to implement such a |
192 |
|
|
; callback-function. |
193 |
|
|
unserialize_callback_func= |
194 |
|
|
|
195 |
|
|
; When floats & doubles are serialized store serialize_precision significant |
196 |
|
|
; digits after the floating point. The default value ensures that when floats |
197 |
|
|
; are decoded with unserialize, the data will remain the same. |
198 |
|
|
serialize_precision = 100 |
199 |
|
|
|
200 |
|
|
; Whether to enable the ability to force arguments to be passed by reference |
201 |
|
|
; at function call time. This method is deprecated and is likely to be |
202 |
|
|
; unsupported in future versions of PHP/Zend. The encouraged method of |
203 |
|
|
; specifying which arguments should be passed by reference is in the function |
204 |
|
|
; declaration. You're encouraged to try and turn this option Off and make |
205 |
|
|
; sure your scripts work properly with it in order to ensure they will work |
206 |
|
|
; with future versions of the language (you will receive a warning each time |
207 |
|
|
; you use this feature, and the argument will be passed by value instead of by |
208 |
|
|
; reference). |
209 |
|
|
allow_call_time_pass_reference = Off |
210 |
|
|
|
211 |
|
|
; |
212 |
|
|
; Safe Mode |
213 |
|
|
; |
214 |
|
|
safe_mode = Off |
215 |
|
|
|
216 |
|
|
; By default, Safe Mode does a UID compare check when |
217 |
|
|
; opening files. If you want to relax this to a GID compare, |
218 |
|
|
; then turn on safe_mode_gid. |
219 |
|
|
safe_mode_gid = Off |
220 |
|
|
|
221 |
|
|
; When safe_mode is on, UID/GID checks are bypassed when |
222 |
|
|
; including files from this directory and its subdirectories. |
223 |
|
|
; (directory must also be in include_path or full path must |
224 |
|
|
; be used when including) |
225 |
|
|
safe_mode_include_dir = |
226 |
|
|
|
227 |
|
|
; When safe_mode is on, only executables located in the safe_mode_exec_dir |
228 |
|
|
; will be allowed to be executed via the exec family of functions. |
229 |
|
|
safe_mode_exec_dir = |
230 |
|
|
|
231 |
|
|
; Setting certain environment variables may be a potential security breach. |
232 |
|
|
; This directive contains a comma-delimited list of prefixes. In Safe Mode, |
233 |
|
|
; the user may only alter environment variables whose names begin with the |
234 |
|
|
; prefixes supplied here. By default, users will only be able to set |
235 |
|
|
; environment variables that begin with PHP_ (e.g. PHP_FOO=BAR). |
236 |
|
|
; |
237 |
|
|
; Note: If this directive is empty, PHP will let the user modify ANY |
238 |
|
|
; environment variable! |
239 |
|
|
safe_mode_allowed_env_vars = PHP_ |
240 |
|
|
|
241 |
|
|
; This directive contains a comma-delimited list of environment variables that |
242 |
|
|
; the end user won't be able to change using putenv(). These variables will be |
243 |
|
|
; protected even if safe_mode_allowed_env_vars is set to allow to change them. |
244 |
|
|
safe_mode_protected_env_vars = LD_LIBRARY_PATH |
245 |
|
|
|
246 |
|
|
; open_basedir, if set, limits all file operations to the defined directory |
247 |
|
|
; and below. This directive makes most sense if used in a per-directory |
248 |
|
|
; or per-virtualhost web server configuration file. This directive is |
249 |
|
|
; *NOT* affected by whether Safe Mode is turned On or Off. |
250 |
|
|
;open_basedir = |
251 |
|
|
|
252 |
|
|
; This directive allows you to disable certain functions for security reasons. |
253 |
|
|
; It receives a comma-delimited list of function names. This directive is |
254 |
|
|
; *NOT* affected by whether Safe Mode is turned On or Off. |
255 |
|
|
disable_functions = |
256 |
|
|
|
257 |
|
|
; This directive allows you to disable certain classes for security reasons. |
258 |
|
|
; It receives a comma-delimited list of class names. This directive is |
259 |
|
|
; *NOT* affected by whether Safe Mode is turned On or Off. |
260 |
|
|
disable_classes = |
261 |
|
|
|
262 |
|
|
; Colors for Syntax Highlighting mode. Anything that's acceptable in |
263 |
|
|
; <span style="color: ???????"> would work. |
264 |
|
|
;highlight.string = #DD0000 |
265 |
|
|
;highlight.comment = #FF9900 |
266 |
|
|
;highlight.keyword = #007700 |
267 |
|
|
;highlight.bg = #FFFFFF |
268 |
|
|
;highlight.default = #0000BB |
269 |
|
|
;highlight.html = #000000 |
270 |
|
|
|
271 |
|
|
; If enabled, the request will be allowed to complete even if the user aborts |
272 |
|
|
; the request. Consider enabling it if executing long request, which may end up |
273 |
|
|
; being interrupted by the user or a browser timing out. |
274 |
|
|
; ignore_user_abort = On |
275 |
|
|
|
276 |
|
|
; Determines the size of the realpath cache to be used by PHP. This value should |
277 |
|
|
; be increased on systems where PHP opens many files to reflect the quantity of |
278 |
|
|
; the file operations performed. |
279 |
|
|
; realpath_cache_size=16k |
280 |
|
|
|
281 |
|
|
; Duration of time, in seconds for which to cache realpath information for a given |
282 |
|
|
; file or directory. For systems with rarely changing files, consider increasing this |
283 |
|
|
; value. |
284 |
|
|
; realpath_cache_ttl=120 |
285 |
|
|
|
286 |
|
|
; |
287 |
|
|
; Misc |
288 |
|
|
; |
289 |
|
|
; Decides whether PHP may expose the fact that it is installed on the server |
290 |
|
|
; (e.g. by adding its signature to the Web server header). It is no security |
291 |
|
|
; threat in any way, but it makes it possible to determine whether you use PHP |
292 |
|
|
; on your server or not. |
293 |
|
|
expose_php = On |
294 |
|
|
|
295 |
|
|
|
296 |
|
|
;;;;;;;;;;;;;;;;;;; |
297 |
|
|
; Resource Limits ; |
298 |
|
|
;;;;;;;;;;;;;;;;;;; |
299 |
|
|
|
300 |
|
|
max_execution_time = 30 ; Maximum execution time of each script, in seconds |
301 |
|
|
max_input_time = 60 ; Maximum amount of time each script may spend parsing request data |
302 |
|
|
memory_limit = 32M ; Maximum amount of memory a script may consume (16MB) |
303 |
|
|
|
304 |
|
|
|
305 |
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
306 |
|
|
; Error handling and logging ; |
307 |
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
308 |
|
|
|
309 |
|
|
; error_reporting is a bit-field. Or each number up to get desired error |
310 |
|
|
; reporting level |
311 |
|
|
; E_ALL - All errors and warnings (doesn't include E_STRICT) |
312 |
|
|
; E_ERROR - fatal run-time errors |
313 |
|
|
; E_RECOVERABLE_ERROR - almost fatal run-time errors |
314 |
|
|
; E_WARNING - run-time warnings (non-fatal errors) |
315 |
|
|
; E_PARSE - compile-time parse errors |
316 |
|
|
; E_NOTICE - run-time notices (these are warnings which often result |
317 |
|
|
; from a bug in your code, but it's possible that it was |
318 |
|
|
; intentional (e.g., using an uninitialized variable and |
319 |
|
|
; relying on the fact it's automatically initialized to an |
320 |
|
|
; empty string) |
321 |
|
|
; E_STRICT - run-time notices, enable to have PHP suggest changes |
322 |
|
|
; to your code which will ensure the best interoperability |
323 |
|
|
; and forward compatibility of your code |
324 |
|
|
; E_CORE_ERROR - fatal errors that occur during PHP's initial startup |
325 |
|
|
; E_CORE_WARNING - warnings (non-fatal errors) that occur during PHP's |
326 |
|
|
; initial startup |
327 |
|
|
; E_COMPILE_ERROR - fatal compile-time errors |
328 |
|
|
; E_COMPILE_WARNING - compile-time warnings (non-fatal errors) |
329 |
|
|
; E_USER_ERROR - user-generated error message |
330 |
|
|
; E_USER_WARNING - user-generated warning message |
331 |
|
|
; E_USER_NOTICE - user-generated notice message |
332 |
|
|
; |
333 |
|
|
; Examples: |
334 |
|
|
; |
335 |
|
|
; - Show all errors, except for notices and coding standards warnings |
336 |
|
|
; |
337 |
|
|
;error_reporting = E_ALL & ~E_NOTICE |
338 |
|
|
; |
339 |
|
|
; - Show all errors, except for notices |
340 |
|
|
; |
341 |
|
|
;error_reporting = E_ALL & ~E_NOTICE | E_STRICT |
342 |
|
|
; |
343 |
|
|
; - Show only errors |
344 |
|
|
; |
345 |
|
|
;error_reporting = E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR |
346 |
|
|
; |
347 |
|
|
; - Show all errors, except coding standards warnings |
348 |
|
|
; |
349 |
|
|
error_reporting = E_ALL |
350 |
|
|
|
351 |
|
|
; Print out errors (as a part of the output). For production web sites, |
352 |
|
|
; you're strongly encouraged to turn this feature off, and use error logging |
353 |
|
|
; instead (see below). Keeping display_errors enabled on a production web site |
354 |
|
|
; may reveal security information to end users, such as file paths on your Web |
355 |
|
|
; server, your database schema or other information. |
356 |
|
|
display_errors = Off |
357 |
|
|
|
358 |
|
|
; Even when display_errors is on, errors that occur during PHP's startup |
359 |
|
|
; sequence are not displayed. It's strongly recommended to keep |
360 |
|
|
; display_startup_errors off, except for when debugging. |
361 |
|
|
display_startup_errors = Off |
362 |
|
|
|
363 |
|
|
; Log errors into a log file (server-specific log, stderr, or error_log (below)) |
364 |
|
|
; As stated above, you're strongly advised to use error logging in place of |
365 |
|
|
; error displaying on production web sites. |
366 |
|
|
log_errors = On |
367 |
|
|
|
368 |
|
|
; Set maximum length of log_errors. In error_log information about the source is |
369 |
|
|
; added. The default is 1024 and 0 allows to not apply any maximum length at all. |
370 |
|
|
log_errors_max_len = 1024 |
371 |
|
|
|
372 |
|
|
; Do not log repeated messages. Repeated errors must occur in same file on same |
373 |
|
|
; line until ignore_repeated_source is set true. |
374 |
|
|
ignore_repeated_errors = Off |
375 |
|
|
|
376 |
|
|
; Ignore source of message when ignoring repeated messages. When this setting |
377 |
|
|
; is On you will not log errors with repeated messages from different files or |
378 |
|
|
; source lines. |
379 |
|
|
ignore_repeated_source = Off |
380 |
|
|
|
381 |
|
|
; If this parameter is set to Off, then memory leaks will not be shown (on |
382 |
|
|
; stdout or in the log). This has only effect in a debug compile, and if |
383 |
|
|
; error reporting includes E_WARNING in the allowed list |
384 |
|
|
report_memleaks = On |
385 |
|
|
|
386 |
|
|
;report_zend_debug = 0 |
387 |
|
|
|
388 |
|
|
; Store the last error/warning message in $php_errormsg (boolean). |
389 |
|
|
track_errors = Off |
390 |
|
|
|
391 |
|
|
; Disable the inclusion of HTML tags in error messages. |
392 |
|
|
; Note: Never use this feature for production boxes. |
393 |
|
|
;html_errors = Off |
394 |
|
|
|
395 |
|
|
; If html_errors is set On PHP produces clickable error messages that direct |
396 |
|
|
; to a page describing the error or function causing the error in detail. |
397 |
|
|
; You can download a copy of the PHP manual from http://www.php.net/docs.php |
398 |
|
|
; and change docref_root to the base URL of your local copy including the |
399 |
|
|
; leading '/'. You must also specify the file extension being used including |
400 |
|
|
; the dot. |
401 |
|
|
; Note: Never use this feature for production boxes. |
402 |
|
|
;docref_root = "/phpmanual/" |
403 |
|
|
;docref_ext = .html |
404 |
|
|
|
405 |
|
|
; String to output before an error message. |
406 |
|
|
;error_prepend_string = "<font color=ff0000>" |
407 |
|
|
|
408 |
|
|
; String to output after an error message. |
409 |
|
|
;error_append_string = "</font>" |
410 |
|
|
|
411 |
|
|
; Log errors to specified file. |
412 |
|
|
;error_log = filename |
413 |
|
|
|
414 |
|
|
; Log errors to syslog (Event Log on NT, not valid in Windows 95). |
415 |
|
|
;error_log = syslog |
416 |
|
|
|
417 |
|
|
|
418 |
|
|
;;;;;;;;;;;;;;;;; |
419 |
|
|
; Data Handling ; |
420 |
|
|
;;;;;;;;;;;;;;;;; |
421 |
|
|
; |
422 |
|
|
; Note - track_vars is ALWAYS enabled as of PHP 4.0.3 |
423 |
|
|
|
424 |
|
|
; The separator used in PHP generated URLs to separate arguments. |
425 |
|
|
; Default is "&". |
426 |
|
|
;arg_separator.output = "&" |
427 |
|
|
|
428 |
|
|
; List of separator(s) used by PHP to parse input URLs into variables. |
429 |
|
|
; Default is "&". |
430 |
|
|
; NOTE: Every character in this directive is considered as separator! |
431 |
|
|
;arg_separator.input = ";&" |
432 |
|
|
|
433 |
|
|
; This directive describes the order in which PHP registers GET, POST, Cookie, |
434 |
|
|
; Environment and Built-in variables (G, P, C, E & S respectively, often |
435 |
|
|
; referred to as EGPCS or GPC). Registration is done from left to right, newer |
436 |
|
|
; values override older values. |
437 |
|
|
variables_order = "EGPCS" |
438 |
|
|
|
439 |
|
|
; Whether or not to register the EGPCS variables as global variables. You may |
440 |
|
|
; want to turn this off if you don't want to clutter your scripts' global scope |
441 |
|
|
; with user data. This makes most sense when coupled with track_vars - in which |
442 |
|
|
; case you can access all of the GPC variables through the $HTTP_*_VARS[], |
443 |
|
|
; variables. |
444 |
|
|
; |
445 |
|
|
; You should do your best to write your scripts so that they do not require |
446 |
|
|
; register_globals to be on; Using form variables as globals can easily lead |
447 |
|
|
; to possible security problems, if the code is not very well thought of. |
448 |
|
|
register_globals = Off |
449 |
|
|
|
450 |
|
|
; Whether or not to register the old-style input arrays, HTTP_GET_VARS |
451 |
|
|
; and friends. If you're not using them, it's recommended to turn them off, |
452 |
|
|
; for performance reasons. |
453 |
|
|
register_long_arrays = Off |
454 |
|
|
|
455 |
|
|
; This directive tells PHP whether to declare the argv&argc variables (that |
456 |
|
|
; would contain the GET information). If you don't use these variables, you |
457 |
|
|
; should turn it off for increased performance. |
458 |
|
|
register_argc_argv = Off |
459 |
|
|
|
460 |
|
|
; When enabled, the SERVER and ENV variables are created when they're first |
461 |
|
|
; used (Just In Time) instead of when the script starts. If these variables |
462 |
|
|
; are not used within a script, having this directive on will result in a |
463 |
|
|
; performance gain. The PHP directives register_globals, register_long_arrays, |
464 |
|
|
; and register_argc_argv must be disabled for this directive to have any affect. |
465 |
|
|
auto_globals_jit = On |
466 |
|
|
|
467 |
|
|
; Maximum size of POST data that PHP will accept. |
468 |
|
|
post_max_size = 8M |
469 |
|
|
|
470 |
|
|
; Magic quotes |
471 |
|
|
; |
472 |
|
|
|
473 |
|
|
; Magic quotes for incoming GET/POST/Cookie data. |
474 |
|
|
magic_quotes_gpc = Off |
475 |
|
|
|
476 |
|
|
; Magic quotes for runtime-generated data, e.g. data from SQL, from exec(), etc. |
477 |
|
|
magic_quotes_runtime = Off |
478 |
|
|
|
479 |
|
|
; Use Sybase-style magic quotes (escape ' with '' instead of \'). |
480 |
|
|
magic_quotes_sybase = Off |
481 |
|
|
|
482 |
|
|
; Automatically add files before or after any PHP document. |
483 |
|
|
auto_prepend_file = |
484 |
|
|
auto_append_file = |
485 |
|
|
|
486 |
|
|
; As of 4.0b4, PHP always outputs a character encoding by default in |
487 |
|
|
; the Content-type: header. To disable sending of the charset, simply |
488 |
|
|
; set it to be empty. |
489 |
|
|
; |
490 |
|
|
; PHP's built-in default is text/html |
491 |
|
|
default_mimetype = "text/html" |
492 |
|
|
;default_charset = "iso-8859-1" |
493 |
|
|
|
494 |
|
|
; Always populate the $HTTP_RAW_POST_DATA variable. |
495 |
|
|
;always_populate_raw_post_data = On |
496 |
|
|
|
497 |
|
|
|
498 |
|
|
;;;;;;;;;;;;;;;;;;;;;;;;; |
499 |
|
|
; Paths and Directories ; |
500 |
|
|
;;;;;;;;;;;;;;;;;;;;;;;;; |
501 |
|
|
|
502 |
|
|
; UNIX: "/path1:/path2" |
503 |
|
|
;include_path = ".:/php/includes" |
504 |
|
|
; |
505 |
|
|
; Windows: "\path1;\path2" |
506 |
|
|
;include_path = ".;c:\php\includes" |
507 |
|
|
|
508 |
|
|
; The root of the PHP pages, used only if nonempty. |
509 |
|
|
; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root |
510 |
|
|
; if you are running php as a CGI under any web server (other than IIS) |
511 |
|
|
; see documentation for security issues. The alternate is to use the |
512 |
|
|
; cgi.force_redirect configuration below |
513 |
|
|
doc_root = |
514 |
|
|
|
515 |
|
|
; The directory under which PHP opens the script using /~username used only |
516 |
|
|
; if nonempty. |
517 |
|
|
user_dir = |
518 |
|
|
|
519 |
|
|
; Directory in which the loadable extensions (modules) reside. |
520 |
|
|
extension_dir = "/usr/lib/php/modules" |
521 |
|
|
|
522 |
|
|
; Whether or not to enable the dl() function. The dl() function does NOT work |
523 |
|
|
; properly in multithreaded servers, such as IIS or Zeus, and is automatically |
524 |
|
|
; disabled on them. |
525 |
|
|
enable_dl = On |
526 |
|
|
|
527 |
|
|
; cgi.force_redirect is necessary to provide security running PHP as a CGI under |
528 |
|
|
; most web servers. Left undefined, PHP turns this on by default. You can |
529 |
|
|
; turn it off here AT YOUR OWN RISK |
530 |
|
|
; **You CAN safely turn this off for IIS, in fact, you MUST.** |
531 |
|
|
; cgi.force_redirect = 1 |
532 |
|
|
|
533 |
|
|
; if cgi.nph is enabled it will force cgi to always sent Status: 200 with |
534 |
|
|
; every request. |
535 |
|
|
; cgi.nph = 1 |
536 |
|
|
|
537 |
|
|
; if cgi.force_redirect is turned on, and you are not running under Apache or Netscape |
538 |
|
|
; (iPlanet) web servers, you MAY need to set an environment variable name that PHP |
539 |
|
|
; will look for to know it is OK to continue execution. Setting this variable MAY |
540 |
|
|
; cause security issues, KNOW WHAT YOU ARE DOING FIRST. |
541 |
|
|
; cgi.redirect_status_env = ; |
542 |
|
|
|
543 |
|
|
; FastCGI under IIS (on WINNT based OS) supports the ability to impersonate |
544 |
|
|
; security tokens of the calling client. This allows IIS to define the |
545 |
|
|
; security context that the request runs under. mod_fastcgi under Apache |
546 |
|
|
; does not currently support this feature (03/17/2002) |
547 |
|
|
; Set to 1 if running under IIS. Default is zero. |
548 |
|
|
; fastcgi.impersonate = 1; |
549 |
|
|
|
550 |
|
|
; Disable logging through FastCGI connection |
551 |
|
|
; fastcgi.log = 0 |
552 |
|
|
|
553 |
|
|
; cgi.rfc2616_headers configuration option tells PHP what type of headers to |
554 |
|
|
; use when sending HTTP response code. If it's set 0 PHP sends Status: header that |
555 |
|
|
; is supported by Apache. When this option is set to 1 PHP will send |
556 |
|
|
; RFC2616 compliant header. |
557 |
|
|
; Default is zero. |
558 |
|
|
;cgi.rfc2616_headers = 0 |
559 |
|
|
|
560 |
|
|
|
561 |
|
|
;;;;;;;;;;;;;;;; |
562 |
|
|
; File Uploads ; |
563 |
|
|
;;;;;;;;;;;;;;;; |
564 |
|
|
|
565 |
|
|
; Whether to allow HTTP file uploads. |
566 |
|
|
file_uploads = On |
567 |
|
|
|
568 |
|
|
; Temporary directory for HTTP uploaded files (will use system default if not |
569 |
|
|
; specified). |
570 |
|
|
;upload_tmp_dir = |
571 |
|
|
|
572 |
|
|
; Maximum allowed size for uploaded files. |
573 |
|
|
upload_max_filesize = 2M |
574 |
|
|
|
575 |
|
|
|
576 |
|
|
;;;;;;;;;;;;;;;;;; |
577 |
|
|
; Fopen wrappers ; |
578 |
|
|
;;;;;;;;;;;;;;;;;; |
579 |
|
|
|
580 |
|
|
; Whether to allow the treatment of URLs (like http:// or ftp://) as files. |
581 |
|
|
allow_url_fopen = On |
582 |
|
|
|
583 |
|
|
; Whether to allow include/require to open URLs (like http:// or ftp://) as files. |
584 |
|
|
allow_url_include = Off |
585 |
|
|
|
586 |
|
|
; Define the anonymous ftp password (your email address) |
587 |
|
|
;from="john@doe.com" |
588 |
|
|
|
589 |
|
|
; Define the User-Agent string |
590 |
|
|
; user_agent="PHP" |
591 |
|
|
|
592 |
|
|
; Default timeout for socket based streams (seconds) |
593 |
|
|
default_socket_timeout = 60 |
594 |
|
|
|
595 |
|
|
; If your scripts have to deal with files from Macintosh systems, |
596 |
|
|
; or you are running on a Mac and need to deal with files from |
597 |
|
|
; unix or win32 systems, setting this flag will cause PHP to |
598 |
|
|
; automatically detect the EOL character in those files so that |
599 |
|
|
; fgets() and file() will work regardless of the source of the file. |
600 |
|
|
; auto_detect_line_endings = Off |
601 |
|
|
|
602 |
|
|
|
603 |
|
|
;;;;;;;;;;;;;;;;;;;;;; |
604 |
|
|
; Dynamic Extensions ; |
605 |
|
|
;;;;;;;;;;;;;;;;;;;;;; |
606 |
|
|
; |
607 |
|
|
; If you wish to have an extension loaded automatically, use the following |
608 |
|
|
; syntax: |
609 |
|
|
; |
610 |
|
|
; extension=modulename.extension |
611 |
|
|
; |
612 |
|
|
; For example: |
613 |
|
|
; |
614 |
|
|
; extension=msql.so |
615 |
|
|
; |
616 |
|
|
; Note that it should be the name of the module only; no directory information |
617 |
|
|
; needs to go here. Specify the location of the extension with the |
618 |
|
|
; extension_dir directive above. |
619 |
|
|
|
620 |
|
|
|
621 |
|
|
;;;; |
622 |
|
|
; Note: packaged extension modules are now loaded via the .ini files |
623 |
|
|
; found in the directory /etc/php.d; these are loaded by default. |
624 |
|
|
;;;; |
625 |
|
|
|
626 |
|
|
|
627 |
|
|
;;;;;;;;;;;;;;;;;;; |
628 |
|
|
; Module Settings ; |
629 |
|
|
;;;;;;;;;;;;;;;;;;; |
630 |
|
|
|
631 |
|
|
[Date] |
632 |
|
|
; Defines the default timezone used by the date functions |
633 |
|
|
;date.timezone = |
634 |
|
|
|
635 |
|
|
;date.default_latitude = 31.7667 |
636 |
|
|
;date.default_longitude = 35.2333 |
637 |
|
|
|
638 |
|
|
;date.sunrise_zenith = 90.583333 |
639 |
|
|
;date.sunset_zenith = 90.583333 |
640 |
|
|
|
641 |
|
|
[filter] |
642 |
|
|
;filter.default = unsafe_raw |
643 |
|
|
;filter.default_flags = |
644 |
|
|
|
645 |
|
|
[iconv] |
646 |
|
|
;iconv.input_encoding = ISO-8859-1 |
647 |
|
|
;iconv.internal_encoding = ISO-8859-1 |
648 |
|
|
;iconv.output_encoding = ISO-8859-1 |
649 |
|
|
|
650 |
|
|
[sqlite] |
651 |
|
|
;sqlite.assoc_case = 0 |
652 |
|
|
|
653 |
|
|
[xmlrpc] |
654 |
|
|
;xmlrpc_error_number = 0 |
655 |
|
|
;xmlrpc_errors = 0 |
656 |
|
|
|
657 |
|
|
[Pcre] |
658 |
|
|
;PCRE library backtracking limit. |
659 |
|
|
;pcre.backtrack_limit=100000 |
660 |
|
|
|
661 |
|
|
;PCRE library recursion limit. |
662 |
|
|
;Please note that if you set this value to a high number you may consume all |
663 |
|
|
;the available process stack and eventually crash PHP (due to reaching the |
664 |
|
|
;stack size limit imposed by the Operating System). |
665 |
|
|
;pcre.recursion_limit=100000 |
666 |
|
|
|
667 |
|
|
[Syslog] |
668 |
|
|
; Whether or not to define the various syslog variables (e.g. $LOG_PID, |
669 |
|
|
; $LOG_CRON, etc.). Turning it off is a good idea performance-wise. In |
670 |
|
|
; runtime, you can define these variables by calling define_syslog_variables(). |
671 |
|
|
define_syslog_variables = Off |
672 |
|
|
|
673 |
|
|
[mail function] |
674 |
|
|
; For Win32 only. |
675 |
|
|
SMTP = localhost |
676 |
|
|
smtp_port = 25 |
677 |
|
|
|
678 |
|
|
; For Win32 only. |
679 |
|
|
;sendmail_from = me@example.com |
680 |
|
|
|
681 |
|
|
; For Unix only. You may supply arguments as well (default: "sendmail -t -i"). |
682 |
|
|
sendmail_path = /usr/sbin/sendmail -t -i |
683 |
|
|
|
684 |
|
|
; Force the addition of the specified parameters to be passed as extra parameters |
685 |
|
|
; to the sendmail binary. These parameters will always replace the value of |
686 |
|
|
; the 5th parameter to mail(), even in safe mode. |
687 |
|
|
;mail.force_extra_parameters = |
688 |
|
|
|
689 |
|
|
[SQL] |
690 |
|
|
sql.safe_mode = Off |
691 |
|
|
|
692 |
|
|
[ODBC] |
693 |
|
|
;odbc.default_db = Not yet implemented |
694 |
|
|
;odbc.default_user = Not yet implemented |
695 |
|
|
;odbc.default_pw = Not yet implemented |
696 |
|
|
|
697 |
|
|
; Allow or prevent persistent links. |
698 |
|
|
odbc.allow_persistent = On |
699 |
|
|
|
700 |
|
|
; Check that a connection is still valid before reuse. |
701 |
|
|
odbc.check_persistent = On |
702 |
|
|
|
703 |
|
|
; Maximum number of persistent links. -1 means no limit. |
704 |
|
|
odbc.max_persistent = -1 |
705 |
|
|
|
706 |
|
|
; Maximum number of links (persistent + non-persistent). -1 means no limit. |
707 |
|
|
odbc.max_links = -1 |
708 |
|
|
|
709 |
|
|
; Handling of LONG fields. Returns number of bytes to variables. 0 means |
710 |
|
|
; passthru. |
711 |
|
|
odbc.defaultlrl = 4096 |
712 |
|
|
|
713 |
|
|
; Handling of binary data. 0 means passthru, 1 return as is, 2 convert to char. |
714 |
|
|
; See the documentation on odbc_binmode and odbc_longreadlen for an explanation |
715 |
|
|
; of uodbc.defaultlrl and uodbc.defaultbinmode |
716 |
|
|
odbc.defaultbinmode = 1 |
717 |
|
|
|
718 |
|
|
[MySQL] |
719 |
|
|
; Allow or prevent persistent links. |
720 |
|
|
mysql.allow_persistent = On |
721 |
|
|
|
722 |
|
|
; Maximum number of persistent links. -1 means no limit. |
723 |
|
|
mysql.max_persistent = -1 |
724 |
|
|
|
725 |
|
|
; Maximum number of links (persistent + non-persistent). -1 means no limit. |
726 |
|
|
mysql.max_links = -1 |
727 |
|
|
|
728 |
|
|
; Default port number for mysql_connect(). If unset, mysql_connect() will use |
729 |
|
|
; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the |
730 |
|
|
; compile-time value defined MYSQL_PORT (in that order). Win32 will only look |
731 |
|
|
; at MYSQL_PORT. |
732 |
|
|
mysql.default_port = |
733 |
|
|
|
734 |
|
|
; Default socket name for local MySQL connects. If empty, uses the built-in |
735 |
|
|
; MySQL defaults. |
736 |
|
|
mysql.default_socket = |
737 |
|
|
|
738 |
|
|
; Default host for mysql_connect() (doesn't apply in safe mode). |
739 |
|
|
mysql.default_host = |
740 |
|
|
|
741 |
|
|
; Default user for mysql_connect() (doesn't apply in safe mode). |
742 |
|
|
mysql.default_user = |
743 |
|
|
|
744 |
|
|
; Default password for mysql_connect() (doesn't apply in safe mode). |
745 |
|
|
; Note that this is generally a *bad* idea to store passwords in this file. |
746 |
|
|
; *Any* user with PHP access can run 'echo get_cfg_var("mysql.default_password") |
747 |
|
|
; and reveal this password! And of course, any users with read access to this |
748 |
|
|
; file will be able to reveal the password as well. |
749 |
|
|
mysql.default_password = |
750 |
|
|
|
751 |
|
|
; Maximum time (in seconds) for connect timeout. -1 means no limit |
752 |
|
|
mysql.connect_timeout = 60 |
753 |
|
|
|
754 |
|
|
; Trace mode. When trace_mode is active (=On), warnings for table/index scans and |
755 |
|
|
; SQL-Errors will be displayed. |
756 |
|
|
mysql.trace_mode = Off |
757 |
|
|
|
758 |
|
|
[MySQLi] |
759 |
|
|
|
760 |
|
|
; Maximum number of links. -1 means no limit. |
761 |
|
|
mysqli.max_links = -1 |
762 |
|
|
|
763 |
|
|
; Default port number for mysqli_connect(). If unset, mysqli_connect() will use |
764 |
|
|
; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the |
765 |
|
|
; compile-time value defined MYSQL_PORT (in that order). Win32 will only look |
766 |
|
|
; at MYSQL_PORT. |
767 |
|
|
mysqli.default_port = 3306 |
768 |
|
|
|
769 |
|
|
; Default socket name for local MySQL connects. If empty, uses the built-in |
770 |
|
|
; MySQL defaults. |
771 |
|
|
mysqli.default_socket = |
772 |
|
|
|
773 |
|
|
; Default host for mysql_connect() (doesn't apply in safe mode). |
774 |
|
|
mysqli.default_host = |
775 |
|
|
|
776 |
|
|
; Default user for mysql_connect() (doesn't apply in safe mode). |
777 |
|
|
mysqli.default_user = |
778 |
|
|
|
779 |
|
|
; Default password for mysqli_connect() (doesn't apply in safe mode). |
780 |
|
|
; Note that this is generally a *bad* idea to store passwords in this file. |
781 |
|
|
; *Any* user with PHP access can run 'echo get_cfg_var("mysqli.default_pw") |
782 |
|
|
; and reveal this password! And of course, any users with read access to this |
783 |
|
|
; file will be able to reveal the password as well. |
784 |
|
|
mysqli.default_pw = |
785 |
|
|
|
786 |
|
|
; Allow or prevent reconnect |
787 |
|
|
mysqli.reconnect = Off |
788 |
|
|
|
789 |
|
|
[mSQL] |
790 |
|
|
; Allow or prevent persistent links. |
791 |
|
|
msql.allow_persistent = On |
792 |
|
|
|
793 |
|
|
; Maximum number of persistent links. -1 means no limit. |
794 |
|
|
msql.max_persistent = -1 |
795 |
|
|
|
796 |
|
|
; Maximum number of links (persistent+non persistent). -1 means no limit. |
797 |
|
|
msql.max_links = -1 |
798 |
|
|
|
799 |
|
|
[PostgresSQL] |
800 |
|
|
; Allow or prevent persistent links. |
801 |
|
|
pgsql.allow_persistent = On |
802 |
|
|
|
803 |
|
|
; Detect broken persistent links always with pg_pconnect(). |
804 |
|
|
; Auto reset feature requires a little overheads. |
805 |
|
|
pgsql.auto_reset_persistent = Off |
806 |
|
|
|
807 |
|
|
; Maximum number of persistent links. -1 means no limit. |
808 |
|
|
pgsql.max_persistent = -1 |
809 |
|
|
|
810 |
|
|
; Maximum number of links (persistent+non persistent). -1 means no limit. |
811 |
|
|
pgsql.max_links = -1 |
812 |
|
|
|
813 |
|
|
; Ignore PostgreSQL backends Notice message or not. |
814 |
|
|
; Notice message logging require a little overheads. |
815 |
|
|
pgsql.ignore_notice = 0 |
816 |
|
|
|
817 |
|
|
; Log PostgreSQL backends Noitce message or not. |
818 |
|
|
; Unless pgsql.ignore_notice=0, module cannot log notice message. |
819 |
|
|
pgsql.log_notice = 0 |
820 |
|
|
|
821 |
|
|
[Sybase] |
822 |
|
|
; Allow or prevent persistent links. |
823 |
|
|
sybase.allow_persistent = On |
824 |
|
|
|
825 |
|
|
; Maximum number of persistent links. -1 means no limit. |
826 |
|
|
sybase.max_persistent = -1 |
827 |
|
|
|
828 |
|
|
; Maximum number of links (persistent + non-persistent). -1 means no limit. |
829 |
|
|
sybase.max_links = -1 |
830 |
|
|
|
831 |
|
|
;sybase.interface_file = "/usr/sybase/interfaces" |
832 |
|
|
|
833 |
|
|
; Minimum error severity to display. |
834 |
|
|
sybase.min_error_severity = 10 |
835 |
|
|
|
836 |
|
|
; Minimum message severity to display. |
837 |
|
|
sybase.min_message_severity = 10 |
838 |
|
|
|
839 |
|
|
; Compatibility mode with old versions of PHP 3.0. |
840 |
|
|
; If on, this will cause PHP to automatically assign types to results according |
841 |
|
|
; to their Sybase type, instead of treating them all as strings. This |
842 |
|
|
; compatibility mode will probably not stay around forever, so try applying |
843 |
|
|
; whatever necessary changes to your code, and turn it off. |
844 |
|
|
sybase.compatability_mode = Off |
845 |
|
|
|
846 |
|
|
[Sybase-CT] |
847 |
|
|
; Allow or prevent persistent links. |
848 |
|
|
sybct.allow_persistent = On |
849 |
|
|
|
850 |
|
|
; Maximum number of persistent links. -1 means no limit. |
851 |
|
|
sybct.max_persistent = -1 |
852 |
|
|
|
853 |
|
|
; Maximum number of links (persistent + non-persistent). -1 means no limit. |
854 |
|
|
sybct.max_links = -1 |
855 |
|
|
|
856 |
|
|
; Minimum server message severity to display. |
857 |
|
|
sybct.min_server_severity = 10 |
858 |
|
|
|
859 |
|
|
; Minimum client message severity to display. |
860 |
|
|
sybct.min_client_severity = 10 |
861 |
|
|
|
862 |
|
|
[bcmath] |
863 |
|
|
; Number of decimal digits for all bcmath functions. |
864 |
|
|
bcmath.scale = 0 |
865 |
|
|
|
866 |
|
|
[browscap] |
867 |
|
|
;browscap = extra/browscap.ini |
868 |
|
|
|
869 |
|
|
[Informix] |
870 |
|
|
; Default host for ifx_connect() (doesn't apply in safe mode). |
871 |
|
|
ifx.default_host = |
872 |
|
|
|
873 |
|
|
; Default user for ifx_connect() (doesn't apply in safe mode). |
874 |
|
|
ifx.default_user = |
875 |
|
|
|
876 |
|
|
; Default password for ifx_connect() (doesn't apply in safe mode). |
877 |
|
|
ifx.default_password = |
878 |
|
|
|
879 |
|
|
; Allow or prevent persistent links. |
880 |
|
|
ifx.allow_persistent = On |
881 |
|
|
|
882 |
|
|
; Maximum number of persistent links. -1 means no limit. |
883 |
|
|
ifx.max_persistent = -1 |
884 |
|
|
|
885 |
|
|
; Maximum number of links (persistent + non-persistent). -1 means no limit. |
886 |
|
|
ifx.max_links = -1 |
887 |
|
|
|
888 |
|
|
; If on, select statements return the contents of a text blob instead of its id. |
889 |
|
|
ifx.textasvarchar = 0 |
890 |
|
|
|
891 |
|
|
; If on, select statements return the contents of a byte blob instead of its id. |
892 |
|
|
ifx.byteasvarchar = 0 |
893 |
|
|
|
894 |
|
|
; Trailing blanks are stripped from fixed-length char columns. May help the |
895 |
|
|
; life of Informix SE users. |
896 |
|
|
ifx.charasvarchar = 0 |
897 |
|
|
|
898 |
|
|
; If on, the contents of text and byte blobs are dumped to a file instead of |
899 |
|
|
; keeping them in memory. |
900 |
|
|
ifx.blobinfile = 0 |
901 |
|
|
|
902 |
|
|
; NULL's are returned as empty strings, unless this is set to 1. In that case, |
903 |
|
|
; NULL's are returned as string 'NULL'. |
904 |
|
|
ifx.nullformat = 0 |
905 |
|
|
|
906 |
|
|
[Session] |
907 |
|
|
; Handler used to store/retrieve data. |
908 |
|
|
session.save_handler = files |
909 |
|
|
|
910 |
|
|
; Argument passed to save_handler. In the case of files, this is the path |
911 |
|
|
; where data files are stored. Note: Windows users have to change this |
912 |
|
|
; variable in order to use PHP's session functions. |
913 |
|
|
; |
914 |
|
|
; As of PHP 4.0.1, you can define the path as: |
915 |
|
|
; |
916 |
|
|
; session.save_path = "N;/path" |
917 |
|
|
; |
918 |
|
|
; where N is an integer. Instead of storing all the session files in |
919 |
|
|
; /path, what this will do is use subdirectories N-levels deep, and |
920 |
|
|
; store the session data in those directories. This is useful if you |
921 |
|
|
; or your OS have problems with lots of files in one directory, and is |
922 |
|
|
; a more efficient layout for servers that handle lots of sessions. |
923 |
|
|
; |
924 |
|
|
; NOTE 1: PHP will not create this directory structure automatically. |
925 |
|
|
; You can use the script in the ext/session dir for that purpose. |
926 |
|
|
; NOTE 2: See the section on garbage collection below if you choose to |
927 |
|
|
; use subdirectories for session storage |
928 |
|
|
; |
929 |
|
|
; The file storage module creates files using mode 600 by default. |
930 |
|
|
; You can change that by using |
931 |
|
|
; |
932 |
|
|
; session.save_path = "N;MODE;/path" |
933 |
|
|
; |
934 |
|
|
; where MODE is the octal representation of the mode. Note that this |
935 |
|
|
; does not overwrite the process's umask. |
936 |
|
|
session.save_path = "/var/lib/php/session" |
937 |
|
|
|
938 |
|
|
; Whether to use cookies. |
939 |
|
|
session.use_cookies = 1 |
940 |
|
|
|
941 |
|
|
; This option enables administrators to make their users invulnerable to |
942 |
|
|
; attacks which involve passing session ids in URLs; defaults to 0. |
943 |
|
|
; session.use_only_cookies = 1 |
944 |
|
|
|
945 |
|
|
; Name of the session (used as cookie name). |
946 |
|
|
session.name = PHPSESSID |
947 |
|
|
|
948 |
|
|
; Initialize session on request startup. |
949 |
|
|
session.auto_start = 0 |
950 |
|
|
|
951 |
|
|
; Lifetime in seconds of cookie or, if 0, until browser is restarted. |
952 |
|
|
session.cookie_lifetime = 0 |
953 |
|
|
|
954 |
|
|
; The path for which the cookie is valid. |
955 |
|
|
session.cookie_path = / |
956 |
|
|
|
957 |
|
|
; The domain for which the cookie is valid. |
958 |
|
|
session.cookie_domain = |
959 |
|
|
|
960 |
|
|
; Whether or not to add the httpOnly flag to the cookie, which makes it inaccessible to browser scripting languages such as JavaScript. |
961 |
|
|
session.cookie_httponly = |
962 |
|
|
|
963 |
|
|
; Handler used to serialize data. php is the standard serializer of PHP. |
964 |
|
|
session.serialize_handler = php |
965 |
|
|
|
966 |
|
|
; Define the probability that the 'garbage collection' process is started |
967 |
|
|
; on every session initialization. |
968 |
|
|
; The probability is calculated by using gc_probability/gc_divisor, |
969 |
|
|
; e.g. 1/100 means there is a 1% chance that the GC process starts |
970 |
|
|
; on each request. |
971 |
|
|
|
972 |
|
|
session.gc_probability = 1 |
973 |
|
|
session.gc_divisor = 1000 |
974 |
|
|
|
975 |
|
|
; After this number of seconds, stored data will be seen as 'garbage' and |
976 |
|
|
; cleaned up by the garbage collection process. |
977 |
|
|
session.gc_maxlifetime = 1440 |
978 |
|
|
|
979 |
|
|
; NOTE: If you are using the subdirectory option for storing session files |
980 |
|
|
; (see session.save_path above), then garbage collection does *not* |
981 |
|
|
; happen automatically. You will need to do your own garbage |
982 |
|
|
; collection through a shell script, cron entry, or some other method. |
983 |
|
|
; For example, the following script would is the equivalent of |
984 |
|
|
; setting session.gc_maxlifetime to 1440 (1440 seconds = 24 minutes): |
985 |
|
|
; cd /path/to/sessions; find -cmin +24 | xargs rm |
986 |
|
|
|
987 |
|
|
; PHP 4.2 and less have an undocumented feature/bug that allows you to |
988 |
|
|
; to initialize a session variable in the global scope, albeit register_globals |
989 |
|
|
; is disabled. PHP 4.3 and later will warn you, if this feature is used. |
990 |
|
|
; You can disable the feature and the warning separately. At this time, |
991 |
|
|
; the warning is only displayed, if bug_compat_42 is enabled. |
992 |
|
|
|
993 |
|
|
session.bug_compat_42 = 0 |
994 |
|
|
session.bug_compat_warn = 1 |
995 |
|
|
|
996 |
|
|
; Check HTTP Referer to invalidate externally stored URLs containing ids. |
997 |
|
|
; HTTP_REFERER has to contain this substring for the session to be |
998 |
|
|
; considered as valid. |
999 |
|
|
session.referer_check = |
1000 |
|
|
|
1001 |
|
|
; How many bytes to read from the file. |
1002 |
|
|
session.entropy_length = 0 |
1003 |
|
|
|
1004 |
|
|
; Specified here to create the session id. |
1005 |
|
|
session.entropy_file = |
1006 |
|
|
|
1007 |
|
|
;session.entropy_length = 16 |
1008 |
|
|
|
1009 |
|
|
;session.entropy_file = /dev/urandom |
1010 |
|
|
|
1011 |
|
|
; Set to {nocache,private,public,} to determine HTTP caching aspects |
1012 |
|
|
; or leave this empty to avoid sending anti-caching headers. |
1013 |
|
|
session.cache_limiter = nocache |
1014 |
|
|
|
1015 |
|
|
; Document expires after n minutes. |
1016 |
|
|
session.cache_expire = 180 |
1017 |
|
|
|
1018 |
|
|
; trans sid support is disabled by default. |
1019 |
|
|
; Use of trans sid may risk your users security. |
1020 |
|
|
; Use this option with caution. |
1021 |
|
|
; - User may send URL contains active session ID |
1022 |
|
|
; to other person via. email/irc/etc. |
1023 |
|
|
; - URL that contains active session ID may be stored |
1024 |
|
|
; in publically accessible computer. |
1025 |
|
|
; - User may access your site with the same session ID |
1026 |
|
|
; always using URL stored in browser's history or bookmarks. |
1027 |
|
|
session.use_trans_sid = 0 |
1028 |
|
|
|
1029 |
|
|
; Select a hash function |
1030 |
|
|
; 0: MD5 (128 bits) |
1031 |
|
|
; 1: SHA-1 (160 bits) |
1032 |
|
|
session.hash_function = 0 |
1033 |
|
|
|
1034 |
|
|
; Define how many bits are stored in each character when converting |
1035 |
|
|
; the binary hash data to something readable. |
1036 |
|
|
; |
1037 |
|
|
; 4 bits: 0-9, a-f |
1038 |
|
|
; 5 bits: 0-9, a-v |
1039 |
|
|
; 6 bits: 0-9, a-z, A-Z, "-", "," |
1040 |
|
|
session.hash_bits_per_character = 5 |
1041 |
|
|
|
1042 |
|
|
; The URL rewriter will look for URLs in a defined set of HTML tags. |
1043 |
|
|
; form/fieldset are special; if you include them here, the rewriter will |
1044 |
|
|
; add a hidden <input> field with the info which is otherwise appended |
1045 |
|
|
; to URLs. If you want XHTML conformity, remove the form entry. |
1046 |
|
|
; Note that all valid entries require a "=", even if no value follows. |
1047 |
|
|
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry" |
1048 |
|
|
|
1049 |
|
|
[MSSQL] |
1050 |
|
|
; Allow or prevent persistent links. |
1051 |
|
|
mssql.allow_persistent = On |
1052 |
|
|
|
1053 |
|
|
; Maximum number of persistent links. -1 means no limit. |
1054 |
|
|
mssql.max_persistent = -1 |
1055 |
|
|
|
1056 |
|
|
; Maximum number of links (persistent+non persistent). -1 means no limit. |
1057 |
|
|
mssql.max_links = -1 |
1058 |
|
|
|
1059 |
|
|
; Minimum error severity to display. |
1060 |
|
|
mssql.min_error_severity = 10 |
1061 |
|
|
|
1062 |
|
|
; Minimum message severity to display. |
1063 |
|
|
mssql.min_message_severity = 10 |
1064 |
|
|
|
1065 |
|
|
; Compatibility mode with old versions of PHP 3.0. |
1066 |
|
|
mssql.compatability_mode = Off |
1067 |
|
|
|
1068 |
|
|
; Connect timeout |
1069 |
|
|
;mssql.connect_timeout = 5 |
1070 |
|
|
|
1071 |
|
|
; Query timeout |
1072 |
|
|
;mssql.timeout = 60 |
1073 |
|
|
|
1074 |
|
|
; Valid range 0 - 2147483647. Default = 4096. |
1075 |
|
|
;mssql.textlimit = 4096 |
1076 |
|
|
|
1077 |
|
|
; Valid range 0 - 2147483647. Default = 4096. |
1078 |
|
|
;mssql.textsize = 4096 |
1079 |
|
|
|
1080 |
|
|
; Limits the number of records in each batch. 0 = all records in one batch. |
1081 |
|
|
;mssql.batchsize = 0 |
1082 |
|
|
|
1083 |
|
|
; Specify how datetime and datetim4 columns are returned |
1084 |
|
|
; On => Returns data converted to SQL server settings |
1085 |
|
|
; Off => Returns values as YYYY-MM-DD hh:mm:ss |
1086 |
|
|
;mssql.datetimeconvert = On |
1087 |
|
|
|
1088 |
|
|
; Use NT authentication when connecting to the server |
1089 |
|
|
mssql.secure_connection = Off |
1090 |
|
|
|
1091 |
|
|
; Specify max number of processes. -1 = library default |
1092 |
|
|
; msdlib defaults to 25 |
1093 |
|
|
; FreeTDS defaults to 4096 |
1094 |
|
|
;mssql.max_procs = -1 |
1095 |
|
|
|
1096 |
|
|
; Specify client character set. |
1097 |
|
|
; If empty or not set the client charset from freetds.comf is used |
1098 |
|
|
; This is only used when compiled with FreeTDS |
1099 |
|
|
;mssql.charset = "ISO-8859-1" |
1100 |
|
|
|
1101 |
|
|
[Assertion] |
1102 |
|
|
; Assert(expr); active by default. |
1103 |
|
|
;assert.active = On |
1104 |
|
|
|
1105 |
|
|
; Issue a PHP warning for each failed assertion. |
1106 |
|
|
;assert.warning = On |
1107 |
|
|
|
1108 |
|
|
; Don't bail out by default. |
1109 |
|
|
;assert.bail = Off |
1110 |
|
|
|
1111 |
|
|
; User-function to be called if an assertion fails. |
1112 |
|
|
;assert.callback = 0 |
1113 |
|
|
|
1114 |
|
|
; Eval the expression with current error_reporting(). Set to true if you want |
1115 |
|
|
; error_reporting(0) around the eval(). |
1116 |
|
|
;assert.quiet_eval = 0 |
1117 |
|
|
|
1118 |
|
|
[COM] |
1119 |
|
|
; path to a file containing GUIDs, IIDs or filenames of files with TypeLibs |
1120 |
|
|
;com.typelib_file = |
1121 |
|
|
; allow Distributed-COM calls |
1122 |
|
|
;com.allow_dcom = true |
1123 |
|
|
; autoregister constants of a components typlib on com_load() |
1124 |
|
|
;com.autoregister_typelib = true |
1125 |
|
|
; register constants casesensitive |
1126 |
|
|
;com.autoregister_casesensitive = false |
1127 |
|
|
; show warnings on duplicate constant registrations |
1128 |
|
|
;com.autoregister_verbose = true |
1129 |
|
|
|
1130 |
|
|
[mbstring] |
1131 |
|
|
; language for internal character representation. |
1132 |
|
|
;mbstring.language = Japanese |
1133 |
|
|
|
1134 |
|
|
; internal/script encoding. |
1135 |
|
|
; Some encoding cannot work as internal encoding. |
1136 |
|
|
; (e.g. SJIS, BIG5, ISO-2022-*) |
1137 |
|
|
;mbstring.internal_encoding = EUC-JP |
1138 |
|
|
|
1139 |
|
|
; http input encoding. |
1140 |
|
|
;mbstring.http_input = auto |
1141 |
|
|
|
1142 |
|
|
; http output encoding. mb_output_handler must be |
1143 |
|
|
; registered as output buffer to function |
1144 |
|
|
;mbstring.http_output = SJIS |
1145 |
|
|
|
1146 |
|
|
; enable automatic encoding translation according to |
1147 |
|
|
; mbstring.internal_encoding setting. Input chars are |
1148 |
|
|
; converted to internal encoding by setting this to On. |
1149 |
|
|
; Note: Do _not_ use automatic encoding translation for |
1150 |
|
|
; portable libs/applications. |
1151 |
|
|
;mbstring.encoding_translation = Off |
1152 |
|
|
|
1153 |
|
|
; automatic encoding detection order. |
1154 |
|
|
; auto means |
1155 |
|
|
;mbstring.detect_order = auto |
1156 |
|
|
|
1157 |
|
|
; substitute_character used when character cannot be converted |
1158 |
|
|
; one from another |
1159 |
|
|
;mbstring.substitute_character = none; |
1160 |
|
|
|
1161 |
|
|
; overload(replace) single byte functions by mbstring functions. |
1162 |
|
|
; mail(), ereg(), etc are overloaded by mb_send_mail(), mb_ereg(), |
1163 |
|
|
; etc. Possible values are 0,1,2,4 or combination of them. |
1164 |
|
|
; For example, 7 for overload everything. |
1165 |
|
|
; 0: No overload |
1166 |
|
|
; 1: Overload mail() function |
1167 |
|
|
; 2: Overload str*() functions |
1168 |
|
|
; 4: Overload ereg*() functions |
1169 |
|
|
;mbstring.func_overload = 0 |
1170 |
|
|
|
1171 |
|
|
; enable strict encoding detection. |
1172 |
|
|
;mbstring.strict_encoding = Off |
1173 |
|
|
|
1174 |
|
|
[FrontBase] |
1175 |
|
|
;fbsql.allow_persistent = On |
1176 |
|
|
;fbsql.autocommit = On |
1177 |
|
|
;fbsql.show_timestamp_decimals = Off |
1178 |
|
|
;fbsql.default_database = |
1179 |
|
|
;fbsql.default_database_password = |
1180 |
|
|
;fbsql.default_host = |
1181 |
|
|
;fbsql.default_password = |
1182 |
|
|
;fbsql.default_user = "_SYSTEM" |
1183 |
|
|
;fbsql.generate_warnings = Off |
1184 |
|
|
;fbsql.max_connections = 128 |
1185 |
|
|
;fbsql.max_links = 128 |
1186 |
|
|
;fbsql.max_persistent = -1 |
1187 |
|
|
;fbsql.max_results = 128 |
1188 |
|
|
|
1189 |
|
|
[gd] |
1190 |
|
|
; Tell the jpeg decode to libjpeg warnings and try to create |
1191 |
|
|
; a gd image. The warning will then be displayed as notices |
1192 |
|
|
; disabled by default |
1193 |
|
|
;gd.jpeg_ignore_warning = 0 |
1194 |
|
|
|
1195 |
|
|
[exif] |
1196 |
|
|
; Exif UNICODE user comments are handled as UCS-2BE/UCS-2LE and JIS as JIS. |
1197 |
|
|
; With mbstring support this will automatically be converted into the encoding |
1198 |
|
|
; given by corresponding encode setting. When empty mbstring.internal_encoding |
1199 |
|
|
; is used. For the decode settings you can distinguish between motorola and |
1200 |
|
|
; intel byte order. A decode setting cannot be empty. |
1201 |
|
|
;exif.encode_unicode = ISO-8859-15 |
1202 |
|
|
;exif.decode_unicode_motorola = UCS-2BE |
1203 |
|
|
;exif.decode_unicode_intel = UCS-2LE |
1204 |
|
|
;exif.encode_jis = |
1205 |
|
|
;exif.decode_jis_motorola = JIS |
1206 |
|
|
;exif.decode_jis_intel = JIS |
1207 |
|
|
|
1208 |
|
|
[Tidy] |
1209 |
|
|
; The path to a default tidy configuration file to use when using tidy |
1210 |
|
|
;tidy.default_config = /usr/local/lib/php/default.tcfg |
1211 |
|
|
|
1212 |
|
|
; Should tidy clean and repair output automatically? |
1213 |
|
|
; WARNING: Do not use this option if you are generating non-html content |
1214 |
|
|
; such as dynamic images |
1215 |
|
|
tidy.clean_output = Off |
1216 |
|
|
|
1217 |
|
|
[soap] |
1218 |
|
|
; Enables or disables WSDL caching feature. |
1219 |
|
|
soap.wsdl_cache_enabled=1 |
1220 |
|
|
; Sets the directory name where SOAP extension will put cache files. |
1221 |
|
|
soap.wsdl_cache_dir="/tmp" |
1222 |
|
|
; (time to live) Sets the number of second while cached file will be used |
1223 |
|
|
; instead of original one. |
1224 |
|
|
soap.wsdl_cache_ttl=86400 |
1225 |
|
|
|
1226 |
|
|
; Local Variables: |
1227 |
|
|
; tab-width: 4 |
1228 |
|
|
; End: |