За последние 24 часа нас посетили 17985 программистов и 1674 робота. Сейчас ищут 1169 программистов ...

Большое время отклика после перехода на php 5.2.8

Тема в разделе "Установка PHP", создана пользователем surok, 25 фев 2009.

  1. surok

    surok Активный пользователь

    С нами с:
    24 фев 2009
    Сообщения:
    4
    Симпатии:
    0
    Добрый день!

    Недавно перешли на новую версию PHP 5.2.8. До этого стояла 5.0.5.

    Работает в связке с MySQL 4.1.13 под веб-сервером Eserv 3.35.

    В чем может быть проблема?

    Конфиг php.ini :

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

    440Hz Старожил
    Команда форума Модератор

    С нами с:
    21 дек 2012
    Сообщения:
    8.003
    Симпатии:
    1
    Адрес:
    Оттуда
    а какое большое время? время чего? поподробнее
     
  3. surok

    surok Активный пользователь

    С нами с:
    24 фев 2009
    Сообщения:
    4
    Симпатии:
    0
    На сервере установлена wiki - WackoWiki.

    После перехода на новую версию php стали долго открываться ее страницы - даже на глаз заметно.

    Сами данные хранятся в базе MySQL. Все это работает под Windows Server 2000.

    Откатили php назад и все стало нормально. Предполагаю, что дело в php, но в чем конкретно - не знаю.

    А может ли это из-за того, что MySQL старый?
     
  4. admyx

    admyx Активный пользователь

    С нами с:
    14 мар 2008
    Сообщения:
    2.159
    Симпатии:
    1
    Расширение наверняка mysql.
    Попробуйте поставить mysqli - mysql Improved.
    Ну и, соответственно движок с БД обновить.
     
  5. surok

    surok Активный пользователь

    С нами с:
    24 фев 2009
    Сообщения:
    4
    Симпатии:
    0
    А в чем отличия между mysql и mysqli?
     
  6. 440Hz

    440Hz Старожил
    Команда форума Модератор

    С нами с:
    21 дек 2012
    Сообщения:
    8.003
    Симпатии:
    1
    Адрес:
    Оттуда
    surok

    ты просто тест напиши?

    1. print 'ok';
    2. конект к базе
    3. коннект + выборка

    и посмотри где тормоз?

    а гадать - это к другим форумам...