You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

403 lines
20 KiB

  1. [PHP]
  2. ;;;;;;;;;;;;;;;;;;;
  3. ; About this file ;
  4. ;;;;;;;;;;;;;;;;;;;
  5. ;
  6. ; This is the 'optimized', PHP 4-style version of the php.ini-dist file.
  7. ; For general information about the php.ini file, please consult the php.ini-dist
  8. ; file, included in your PHP distribution.
  9. ;
  10. ; This file is different from the php.ini-dist file in the fact that it features
  11. ; different values for several directives, in order to improve performance, while
  12. ; possibly breaking compatibility with the standard out-of-the-box behavior of
  13. ; PHP 3. Please make sure you read what's different, and modify your scripts
  14. ; accordingly, if you decide to use this file instead (which is recommended!)
  15. ;
  16. ; - allow_call_time_pass_reference = Off
  17. ; It's not possible to decide to force a variable to be passed by reference
  18. ; when calling a function. The PHP 4 style to do this is by making the
  19. ; function require the relevant argument by reference.
  20. ; - register_globals = Off
  21. ; Global variables are no longer registered for input data (POST, GET, cookies,
  22. ; environment and other server variables). Instead of using $foo, you must use
  23. ; $HTTP_POST_VARS["foo"], $HTTP_GET_VARS["foo"], $HTTP_COOKIE_VARS["foo"],
  24. ; $HTTP_ENV_VARS["foo"] or $HTTP_SERVER_VARS["foo"], depending on which kind
  25. ; of input source you're expecting 'foo' to come from.
  26. ; - register_argc_argv = Off
  27. ; Disables registration of the somewhat redundant $argv and $argc global
  28. ; variables.
  29. ; - magic_quotes_gpc = Off
  30. ; Input data is no longer escaped with slashes so that it can be sent into
  31. ; SQL databases without further manipulation. Instead, you should use the
  32. ; function addslashes() on each input element you wish to send to a database.
  33. ; - variables_order = "GPCS"
  34. ; The environment variables are not hashed into the $HTTP_ENV_VARS[]. To access
  35. ; environment variables, you can use getenv() instead.
  36. ;;;;;;;;;;;;;;;;;;;;
  37. ; Language Options ;
  38. ;;;;;;;;;;;;;;;;;;;;
  39. engine = On ; Enable the PHP scripting language engine under Apache
  40. short_open_tag = On ; allow the <? tag. otherwise, only <?php and <script> tags are recognized.
  41. asp_tags = Off ; allow ASP-style <% %> tags
  42. precision = 14 ; number of significant digits displayed in floating point numbers
  43. y2k_compliance = Off ; whether to be year 2000 compliant (will cause problems with non y2k compliant browsers)
  44. output_buffering = Off ; Output buffering allows you to send header lines (including cookies)
  45. ; even after you send body content, in the price of slowing PHP's
  46. ; output layer a bit.
  47. ; You can enable output buffering by in runtime by calling the output
  48. ; buffering functions, or enable output buffering for all files
  49. ; by setting this directive to On.
  50. implicit_flush = Off ; Implicit flush tells PHP to tell the output layer to flush itself
  51. ; automatically after every output block. This is equivalent to
  52. ; calling the PHP function flush() after each and every call to print()
  53. ; or echo() and each and every HTML block.
  54. ; Turning this option on has serious performance implications, and
  55. ; is generally recommended for debugging purposes only.
  56. allow_call_time_pass_reference = Off ; whether to enable the ability to force arguments to be
  57. ; passed by reference at function-call time. This method
  58. ; is deprecated, and is likely to be unsupported in future
  59. ; versions of PHP/Zend. The encouraged method of specifying
  60. ; which arguments should be passed by reference is in the
  61. ; function declaration. You're encouraged to try and
  62. ; turn this option Off, and make sure your scripts work
  63. ; properly with it, to ensure they will work with future
  64. ; versions of the language (you will receive a warning
  65. ; each time you use this feature, and the argument will
  66. ; be passed by value instead of by reference).
  67. ; Safe Mode
  68. safe_mode = Off
  69. safe_mode_exec_dir =
  70. safe_mode_allowed_env_vars = PHP_ ; Setting certain environment variables
  71. ; may be a potential security breach.
  72. ; This directive contains a comma-delimited
  73. ; list of prefixes. In Safe Mode, the
  74. ; user may only alter environment
  75. ; variables whose names begin with the
  76. ; prefixes supplied here.
  77. ; By default, users will only be able
  78. ; to set environment variables that begin
  79. ; with PHP_ (e.g. PHP_FOO=BAR).
  80. ; Note: If this directive is empty, PHP
  81. ; will let the user modify ANY environment
  82. ; variable!
  83. safe_mode_protected_env_vars = LD_LIBRARY_PATH ; This directive contains a comma-
  84. ; delimited list of environment variables,
  85. ; that the end user won't be able to
  86. ; change using putenv().
  87. ; These variables will be protected
  88. ; even if safe_mode_allowed_env_vars is
  89. ; set to allow to change them.
  90. disable_functions = ; This directive allows you to disable certain
  91. ; functions for security reasons. It receives
  92. ; a comma separated list of function names.
  93. ; This directive is *NOT* affected by whether
  94. ; Safe Mode is turned on or off.
  95. ; Colors for Syntax Highlighting mode. Anything that's acceptable in <font color=???> would work.
  96. highlight.string = #DD0000
  97. highlight.comment = #FF8000
  98. highlight.keyword = #007700
  99. highlight.bg = #FFFFFF
  100. highlight.default = #0000BB
  101. highlight.html = #000000
  102. ; Misc
  103. expose_php = On ; Decides whether PHP may expose the fact that it is installed on the
  104. ; server (e.g., by adding its signature to the Web server header).
  105. ; It is no security threat in any way, but it makes it possible
  106. ; to determine whether you use PHP on your server or not.
  107. ;;;;;;;;;;;;;;;;;;;
  108. ; Resource Limits ;
  109. ;;;;;;;;;;;;;;;;;;;
  110. max_execution_time = 30 ; Maximum execution time of each script, in seconds (UNIX only)
  111. memory_limit = 8388608 ; Maximum amount of memory a script may consume (8MB)
  112. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  113. ; Error handling and logging ;
  114. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  115. ; error_reporting is a bit-field. Or each number up to get desired error reporting level
  116. ; E_ALL - All errors and warnings
  117. ; E_ERROR - fatal run-time errors
  118. ; E_WARNING - run-time warnings (non fatal errors)
  119. ; E_PARSE - compile-time parse errors
  120. ; E_NOTICE - run-time notices (these are warnings which often result from a bug in
  121. ; your code, but it's possible that it was intentional (e.g., using an
  122. ; uninitialized variable and relying on the fact it's automatically
  123. ; initialized to an empty string)
  124. ; E_CORE_ERROR - fatal errors that occur during PHP's initial startup
  125. ; E_CORE_WARNING - warnings (non fatal errors) that occur during PHP's initial startup
  126. ; E_COMPILE_ERROR - fatal compile-time errors
  127. ; E_COMPILE_WARNING - compile-time warnings (non fatal errors)
  128. ; E_USER_ERROR - user-generated error message
  129. ; E_USER_WARNING - user-generated warning message
  130. ; E_USER_NOTICE - user-generated notice message
  131. ; Examples:
  132. ; error_reporting = E_ALL & ~E_NOTICE ; show all errors, except for notices
  133. ; error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR ; show only errors
  134. error_reporting = E_ALL & ~E_NOTICE ; Show all errors except for notices
  135. display_errors = On ; Print out errors (as a part of the HTML script)
  136. log_errors = Off ; Log errors into a log file (server-specific log, stderr, or error_log (below))
  137. track_errors = Off ; Store the last error/warning message in $php_errormsg (boolean)
  138. ;error_prepend_string = "<font color=ff0000>" ; string to output before an error message
  139. ;error_append_string = "</font>" ; string to output after an error message
  140. ;error_log = filename ; log errors to specified file
  141. ;error_log = syslog ; log errors to syslog (Event Log on NT, not valid in Windows 95)
  142. warn_plus_overloading = Off ; warn if the + operator is used with strings
  143. ;;;;;;;;;;;;;;;;;
  144. ; Data Handling ;
  145. ;;;;;;;;;;;;;;;;;
  146. variables_order = "GPCS" ; This directive describes the order in which PHP registers
  147. ; GET, POST, Cookie, Environment and Built-in variables (G, P,
  148. ; C, E & S respectively, often referred to as EGPCS or GPC).
  149. ; Registration is done from left to right, newer values override
  150. ; older values.
  151. register_globals = Off ; Whether or not to register the EGPCS variables as global
  152. ; variables. You may want to turn this off if you don't want
  153. ; to clutter your scripts' global scope with user data. This makes
  154. ; most sense when coupled with track_vars - in which case you can
  155. ; access all of the GPC variables through the $HTTP_*_VARS[],
  156. ; variables.
  157. register_argc_argv = Off ; This directive tells PHP whether to declare the argv&argc
  158. ; variables (that would contain the GET information). If you
  159. ; don't use these variables, you should turn it off for
  160. ; increased performance
  161. track_vars = On ; enable the $HTTP_*_VARS[] arrays, where * is one of
  162. ; ENV, POST, GET, COOKIE or SERVER.
  163. gpc_order = "GPC" ; This directive is deprecated. Use variables_order instead.
  164. ; Magic quotes
  165. magic_quotes_gpc = Off ; magic quotes for incoming GET/POST/Cookie data
  166. magic_quotes_runtime= Off ; magic quotes for runtime-generated data, e.g. data from SQL, from exec(), etc.
  167. magic_quotes_sybase = Off ; Use Sybase-style magic quotes (escape ' with '' instead of \')
  168. ; automatically add files before or after any PHP document
  169. auto_prepend_file =
  170. auto_append_file =
  171. ; As of 4.0b4, PHP always outputs a character encoding by default in
  172. ; the Content-type: header. To disable sending of the charset, simply
  173. ; set it to be empty.
  174. ; PHP's built-in default is text/html
  175. default_mimetype = "text/html"
  176. ;default_charset = "iso-8859-1"
  177. ;;;;;;;;;;;;;;;;;;;;;;;;;
  178. ; Paths and Directories ;
  179. ;;;;;;;;;;;;;;;;;;;;;;;;;
  180. include_path = ; UNIX: "/path1:/path2" Windows: "\path1;\path2"
  181. doc_root = ; the root of the php pages, used only if nonempty
  182. user_dir = ; the directory under which php opens the script using /~username, used only if nonempty
  183. ;upload_tmp_dir = ; temporary directory for HTTP uploaded files (will use system default if not specified)
  184. upload_max_filesize = 2097152 ; 2 Meg default limit on file uploads
  185. extension_dir = ./ ; directory in which the loadable extensions (modules) reside
  186. ;;;;;;;;;;;;;;;;;;;;;;
  187. ; Dynamic Extensions ;
  188. ;;;;;;;;;;;;;;;;;;;;;;
  189. ; if you wish to have an extension loaded automaticly, use the
  190. ; following syntax: extension=modulename.extension
  191. ; for example, on windows,
  192. ; extension=msql.dll
  193. ; or under UNIX,
  194. ; extension=msql.so
  195. ; Note that it should be the name of the module only, no directory information
  196. ; needs to go here. Specify the location of the extension with the extension_dir directive above.
  197. ;Windows Extensions
  198. ;extension=php_mysql.dll
  199. ;extension=php_nsmail.dll
  200. ;extension=php_calendar.dll
  201. ;extension=php_dbase.dll
  202. ;extension=php_filepro.dll
  203. ;extension=php_gd.dll
  204. ;extension=php_dbm.dll
  205. ;extension=php_mssql.dll
  206. ;extension=php_zlib.dll
  207. ;extension=php_filepro.dll
  208. ;extension=php_imap4r2.dll
  209. ;extension=php_ldap.dll
  210. ;extension=php_crypt.dll
  211. ;extension=php_msql2.dll
  212. ;extension=php_odbc.dll
  213. ;;;;;;;;;;;;;;;;;;;
  214. ; Module Settings ;
  215. ;;;;;;;;;;;;;;;;;;;
  216. [Syslog]
  217. define_syslog_variables = Off ; Whether or not to define the various syslog variables,
  218. ; e.g. $LOG_PID, $LOG_CRON, etc. Turning it off is a
  219. ; good idea performance-wise. In runtime, you can define
  220. ; these variables by calling define_syslog_variables()
  221. [mail function]
  222. SMTP = localhost ;for win32 only
  223. sendmail_from = me@localhost.com ;for win32 only
  224. ;sendmail_path = ;for unix only, may supply arguments as well (default is sendmail -t)
  225. [Debugger]
  226. debugger.host = localhost
  227. debugger.port = 7869
  228. debugger.enabled = False
  229. [Logging]
  230. ; These configuration directives are used by the example logging mechanism.
  231. ; See examples/README.logging for more explanation.
  232. ;logging.method = db
  233. ;logging.directory = /path/to/log/directory
  234. [SQL]
  235. sql.safe_mode = Off
  236. [ODBC]
  237. ;uodbc.default_db = Not yet implemented
  238. ;uodbc.default_user = Not yet implemented
  239. ;uodbc.default_pw = Not yet implemented
  240. uodbc.allow_persistent = On ; allow or prevent persistent links
  241. uodbc.check_persistent = On ; check that a connection is still validbefore reuse
  242. uodbc.max_persistent = -1 ; maximum number of persistent links. -1 means no limit
  243. uodbc.max_links = -1 ; maximum number of links (persistent+non persistent). -1 means no limit
  244. uodbc.defaultlrl = 4096 ; Handling of LONG fields. Returns number of bytes to variables, 0 means passthru
  245. uodbc.defaultbinmode = 1 ; Handling of binary data. 0 means passthru, 1 return as is, 2 convert to char
  246. ; See the documentation on odbc_binmode and odbc_longreadlen for an explanation of uodbc.defaultlrl
  247. ; and uodbc.defaultbinmode
  248. [MySQL]
  249. mysql.allow_persistent = On ; allow or prevent persistent link
  250. mysql.max_persistent = -1 ; maximum number of persistent links. -1 means no limit
  251. mysql.max_links = -1 ; maximum number of links (persistent+non persistent). -1 means no limit
  252. mysql.default_port = ; default port number for mysql_connect(). If unset,
  253. ; mysql_connect() will use the $MYSQL_TCP_PORT, or the mysql-tcp
  254. ; entry in /etc/services, or the compile-time defined MYSQL_PORT
  255. ; (in that order). Win32 will only look at MYSQL_PORT.
  256. mysql.default_host = ; default host for mysql_connect() (doesn't apply in safe mode)
  257. mysql.default_user = ; default user for mysql_connect() (doesn't apply in safe mode)
  258. mysql.default_password = ; default password for mysql_connect() (doesn't apply in safe mode)
  259. ; Note that this is generally a *bad* idea to store passwords
  260. ; in this file. *Any* user with PHP access can run
  261. ; 'echo cfg_get_var("mysql.default_password")' and reveal that
  262. ; password! And of course, any users with read access to this
  263. ; file will be able to reveal the password as well.
  264. [mSQL]
  265. msql.allow_persistent = On ; allow or prevent persistent link
  266. msql.max_persistent = -1 ; maximum number of persistent links. -1 means no limit
  267. msql.max_links = -1 ; maximum number of links (persistent+non persistent). -1 means no limit
  268. [PostgresSQL]
  269. pgsql.allow_persistent = On ; allow or prevent persistent link
  270. pgsql.max_persistent = -1 ; maximum number of persistent links. -1 means no limit
  271. pgsql.max_links = -1 ; maximum number of links (persistent+non persistent). -1 means no limit
  272. [Sybase]
  273. sybase.allow_persistent = On ; allow or prevent persistent link
  274. sybase.max_persistent = -1 ; maximum number of persistent links. -1 means no limit
  275. sybase.max_links = -1 ; maximum number of links (persistent+non persistent). -1 means no limit
  276. ;sybase.interface_file = "/usr/sybase/interfaces"
  277. sybase.min_error_severity = 10 ; minimum error severity to display
  278. sybase.min_message_severity = 10 ; minimum message severity to display
  279. sybase.compatability_mode = Off ; compatability mode with old versions of PHP 3.0.
  280. ; If on, this will cause PHP to automatically assign types to results
  281. ; according to their Sybase type, instead of treating them all as
  282. ; strings. This compatability mode will probably not stay around
  283. ; forever, so try applying whatever necessary changes to your code,
  284. ; and turn it off.
  285. [Sybase-CT]
  286. sybct.allow_persistent = On ; allow or prevent persistent link
  287. sybct.max_persistent = -1 ; maximum number of persistent links. -1 means no limit
  288. sybct.max_links = -1 ; maximum number of links (persistent+non persistent). -1 means no limit
  289. sybct.min_server_severity = 10 ; minimum server message severity to display
  290. sybct.min_client_severity = 10 ; minimum client message severity to display
  291. [bcmath]
  292. bcmath.scale = 0 ; number of decimal digits for all bcmath functions
  293. [browscap]
  294. ;browscap = extra/browscap.ini
  295. [Informix]
  296. ifx.default_host = ; default host for ifx_connect() (doesn't apply in safe mode)
  297. ifx.default_user = ; default user for ifx_connect() (doesn't apply in safe mode)
  298. ifx.default_password = ; default password for ifx_connect() (doesn't apply in safe mode)
  299. ifx.allow_persistent = On ; allow or prevent persistent link
  300. ifx.max_persistent = -1 ; maximum number of persistent links. -1 means no limit
  301. ifx.max_links = -1 ; maximum number of links (persistent+non persistent). -1 means no limit
  302. ifx.textasvarchar = 0 ; if set on, select statements return the contents of a text blob instead of it's id
  303. ifx.byteasvarchar = 0 ; if set on, select statements return the contents of a byte blob instead of it's id
  304. ifx.charasvarchar = 0 ; trailing blanks are stripped from fixed-length char columns. May help the life
  305. ; of Informix SE users.
  306. ifx.blobinfile = 0 ; if set on, the contents of text&byte blobs are dumped to a file instead of
  307. ; keeping them in memory
  308. ifx.nullformat = 0 ; NULL's are returned as empty strings, unless this is set to 1. In that case,
  309. ; NULL's are returned as string 'NULL'.
  310. [Session]
  311. session.save_handler = files ; handler used to store/retrieve data
  312. session.save_path = /tmp ; argument passed to save_handler
  313. ; in the case of files, this is the
  314. ; path where data files are stored
  315. session.use_cookies = 1 ; whether to use cookies
  316. session.name = PHPSESSID
  317. ; name of the session
  318. ; is used as cookie name
  319. session.auto_start = 0 ; initialize session on request startup
  320. session.cookie_lifetime = 0 ; lifetime in seconds of cookie
  321. ; or if 0, until browser is restarted
  322. session.cookie_path = / ; the path the cookie is valid for
  323. session.cookie_domain = ; the domain the cookie is valid for
  324. session.serialize_handler = php ; handler used to serialize data
  325. ; php is the standard serializer of PHP
  326. session.gc_probability = 1 ; percentual probability that the
  327. ; 'garbage collection' process is started
  328. ; on every session initialization
  329. session.gc_maxlifetime = 1440 ; after this number of seconds, stored
  330. ; data will be seen as 'garbage' and
  331. ; cleaned up by the gc process
  332. session.referer_check = ; check HTTP Referer to invalidate
  333. ; externally stored URLs containing ids
  334. session.entropy_length = 0 ; how many bytes to read from the file
  335. session.entropy_file = ; specified here to create the session id
  336. ; session.entropy_length = 16
  337. ; session.entropy_file = /dev/urandom
  338. session.cache_limiter = nocache ; set to {nocache,private,public} to
  339. ; determine HTTP caching aspects
  340. session.cache_expire = 180 ; document expires after n minutes
  341. [MSSQL]
  342. ;extension=php_mssql.dll
  343. mssql.allow_persistent = On ; allow or prevent persistent link
  344. mssql.max_persistent = -1 ; maximum number of persistent links. -1 means no limit
  345. mssql.max_links = -1 ; maximum number of links (persistent+non persistent). -1 means no limit
  346. mssql.min_error_severity = 10 ; minimum error severity to display
  347. mssql.min_message_severity = 10 ; minimum message severity to display
  348. mssql.compatability_mode = Off ; compatability mode with old versions of PHP 3.0.
  349. [Assertion]
  350. ;assert.active = Off ; assert(expr); does nothing by default
  351. ;assert.warning = On ; issue a PHP warning for each failed assertion.
  352. ;assert.bail = Off ; don't bail out by default.
  353. ;assert.callback = 0 ; user-function to be called if an assertion fails.
  354. ;assert.quiet_eval = 0 ; eval the expression with current error_reporting(). set to true if you want error_reporting(0) around the eval().
  355. ; Local Variables:
  356. ; tab-width: 4
  357. ; End: