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.

427 lines
21 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.
  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
  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. enable_dl = On ; Whether or not to enable the dl() function.
  187. ; The dl() function does NOT properly work in multithreaded
  188. ; servers, such as IIS or Zeus, and is automatically disabled
  189. ; on them.
  190. ;;;;;;;;;;;;;;;;;;;;;;
  191. ; Dynamic Extensions ;
  192. ;;;;;;;;;;;;;;;;;;;;;;
  193. ; if you wish to have an extension loaded automaticly, use the
  194. ; following syntax: extension=modulename.extension
  195. ; for example, on windows,
  196. ; extension=msql.dll
  197. ; or under UNIX,
  198. ; extension=msql.so
  199. ; Note that it should be the name of the module only, no directory information
  200. ; needs to go here. Specify the location of the extension with the extension_dir directive above.
  201. ;Windows Extensions
  202. ;extension=php_mysql.dll
  203. ;extension=php_nsmail.dll
  204. ;extension=php_calendar.dll
  205. ;extension=php_dbase.dll
  206. ;extension=php_filepro.dll
  207. ;extension=php_gd.dll
  208. ;extension=php_dbm.dll
  209. ;extension=php_mssql.dll
  210. ;extension=php_zlib.dll
  211. ;extension=php_filepro.dll
  212. ;extension=php_imap4r2.dll
  213. ;extension=php_ldap.dll
  214. ;extension=php_crypt.dll
  215. ;extension=php_msql2.dll
  216. ;extension=php_odbc.dll
  217. ;;;;;;;;;;;;;;;;;;;
  218. ; Module Settings ;
  219. ;;;;;;;;;;;;;;;;;;;
  220. [Syslog]
  221. define_syslog_variables = Off ; Whether or not to define the various syslog variables,
  222. ; e.g. $LOG_PID, $LOG_CRON, etc. Turning it off is a
  223. ; good idea performance-wise. In runtime, you can define
  224. ; these variables by calling define_syslog_variables()
  225. [mail function]
  226. SMTP = localhost ;for win32 only
  227. sendmail_from = me@localhost.com ;for win32 only
  228. ;sendmail_path = ;for unix only, may supply arguments as well (default is 'sendmail -t -i')
  229. [Debugger]
  230. debugger.host = localhost
  231. debugger.port = 7869
  232. debugger.enabled = False
  233. [Logging]
  234. ; These configuration directives are used by the example logging mechanism.
  235. ; See examples/README.logging for more explanation.
  236. ;logging.method = db
  237. ;logging.directory = /path/to/log/directory
  238. [SQL]
  239. sql.safe_mode = Off
  240. [ODBC]
  241. ;uodbc.default_db = Not yet implemented
  242. ;uodbc.default_user = Not yet implemented
  243. ;uodbc.default_pw = Not yet implemented
  244. uodbc.allow_persistent = On ; allow or prevent persistent links
  245. uodbc.check_persistent = On ; check that a connection is still validbefore reuse
  246. uodbc.max_persistent = -1 ; maximum number of persistent links. -1 means no limit
  247. uodbc.max_links = -1 ; maximum number of links (persistent+non persistent). -1 means no limit
  248. uodbc.defaultlrl = 4096 ; Handling of LONG fields. Returns number of bytes to variables, 0 means passthru
  249. uodbc.defaultbinmode = 1 ; Handling of binary data. 0 means passthru, 1 return as is, 2 convert to char
  250. ; See the documentation on odbc_binmode and odbc_longreadlen for an explanation of uodbc.defaultlrl
  251. ; and uodbc.defaultbinmode
  252. [MySQL]
  253. mysql.allow_persistent = On ; allow or prevent persistent link
  254. mysql.max_persistent = -1 ; maximum number of persistent links. -1 means no limit
  255. mysql.max_links = -1 ; maximum number of links (persistent+non persistent). -1 means no limit
  256. mysql.default_port = ; default port number for mysql_connect(). If unset,
  257. ; mysql_connect() will use the $MYSQL_TCP_PORT, or the mysql-tcp
  258. ; entry in /etc/services, or the compile-time defined MYSQL_PORT
  259. ; (in that order). Win32 will only look at MYSQL_PORT.
  260. mysql.default_socket = ; default socket name for local MySQL connects. If empty, uses the built-in
  261. ; MySQL defaults
  262. mysql.default_host = ; default host for mysql_connect() (doesn't apply in safe mode)
  263. mysql.default_user = ; default user for mysql_connect() (doesn't apply in safe mode)
  264. mysql.default_password = ; default password for mysql_connect() (doesn't apply in safe mode)
  265. ; Note that this is generally a *bad* idea to store passwords
  266. ; in this file. *Any* user with PHP access can run
  267. ; 'echo cfg_get_var("mysql.default_password")' and reveal that
  268. ; password! And of course, any users with read access to this
  269. ; file will be able to reveal the password as well.
  270. [mSQL]
  271. msql.allow_persistent = On ; allow or prevent persistent link
  272. msql.max_persistent = -1 ; maximum number of persistent links. -1 means no limit
  273. msql.max_links = -1 ; maximum number of links (persistent+non persistent). -1 means no limit
  274. [PostgresSQL]
  275. pgsql.allow_persistent = On ; allow or prevent persistent link
  276. pgsql.max_persistent = -1 ; maximum number of persistent links. -1 means no limit
  277. pgsql.max_links = -1 ; maximum number of links (persistent+non persistent). -1 means no limit
  278. [Sybase]
  279. sybase.allow_persistent = On ; allow or prevent persistent link
  280. sybase.max_persistent = -1 ; maximum number of persistent links. -1 means no limit
  281. sybase.max_links = -1 ; maximum number of links (persistent+non persistent). -1 means no limit
  282. ;sybase.interface_file = "/usr/sybase/interfaces"
  283. sybase.min_error_severity = 10 ; minimum error severity to display
  284. sybase.min_message_severity = 10 ; minimum message severity to display
  285. sybase.compatability_mode = Off ; compatability mode with old versions of PHP 3.0.
  286. ; If on, this will cause PHP to automatically assign types to results
  287. ; according to their Sybase type, instead of treating them all as
  288. ; strings. This compatability mode will probably not stay around
  289. ; forever, so try applying whatever necessary changes to your code,
  290. ; and turn it off.
  291. [Sybase-CT]
  292. sybct.allow_persistent = On ; allow or prevent persistent link
  293. sybct.max_persistent = -1 ; maximum number of persistent links. -1 means no limit
  294. sybct.max_links = -1 ; maximum number of links (persistent+non persistent). -1 means no limit
  295. sybct.min_server_severity = 10 ; minimum server message severity to display
  296. sybct.min_client_severity = 10 ; minimum client message severity to display
  297. [bcmath]
  298. bcmath.scale = 0 ; number of decimal digits for all bcmath functions
  299. [browscap]
  300. ;browscap = extra/browscap.ini
  301. [Informix]
  302. ifx.default_host = ; default host for ifx_connect() (doesn't apply in safe mode)
  303. ifx.default_user = ; default user for ifx_connect() (doesn't apply in safe mode)
  304. ifx.default_password = ; default password for ifx_connect() (doesn't apply in safe mode)
  305. ifx.allow_persistent = On ; allow or prevent persistent link
  306. ifx.max_persistent = -1 ; maximum number of persistent links. -1 means no limit
  307. ifx.max_links = -1 ; maximum number of links (persistent+non persistent). -1 means no limit
  308. ifx.textasvarchar = 0 ; if set on, select statements return the contents of a text blob instead of it's id
  309. ifx.byteasvarchar = 0 ; if set on, select statements return the contents of a byte blob instead of it's id
  310. ifx.charasvarchar = 0 ; trailing blanks are stripped from fixed-length char columns. May help the life
  311. ; of Informix SE users.
  312. ifx.blobinfile = 0 ; if set on, the contents of text&byte blobs are dumped to a file instead of
  313. ; keeping them in memory
  314. ifx.nullformat = 0 ; NULL's are returned as empty strings, unless this is set to 1. In that case,
  315. ; NULL's are returned as string 'NULL'.
  316. [Session]
  317. session.save_handler = files ; handler used to store/retrieve data
  318. session.save_path = /tmp ; argument passed to save_handler
  319. ; in the case of files, this is the
  320. ; path where data files are stored
  321. session.use_cookies = 1 ; whether to use cookies
  322. session.name = PHPSESSID
  323. ; name of the session
  324. ; is used as cookie name
  325. session.auto_start = 0 ; initialize session on request startup
  326. session.cookie_lifetime = 0 ; lifetime in seconds of cookie
  327. ; or if 0, until browser is restarted
  328. session.cookie_path = / ; the path the cookie is valid for
  329. session.cookie_domain = ; the domain the cookie is valid for
  330. session.serialize_handler = php ; handler used to serialize data
  331. ; php is the standard serializer of PHP
  332. session.gc_probability = 1 ; percentual probability that the
  333. ; 'garbage collection' process is started
  334. ; on every session initialization
  335. session.gc_maxlifetime = 1440 ; after this number of seconds, stored
  336. ; data will be seen as 'garbage' and
  337. ; cleaned up by the gc process
  338. session.referer_check = ; check HTTP Referer to invalidate
  339. ; externally stored URLs containing ids
  340. session.entropy_length = 0 ; how many bytes to read from the file
  341. session.entropy_file = ; specified here to create the session id
  342. ; session.entropy_length = 16
  343. ; session.entropy_file = /dev/urandom
  344. session.cache_limiter = nocache ; set to {nocache,private,public} to
  345. ; determine HTTP caching aspects
  346. session.cache_expire = 180 ; document expires after n minutes
  347. [MSSQL]
  348. ;extension=php_mssql.dll
  349. mssql.allow_persistent = On ; allow or prevent persistent link
  350. mssql.max_persistent = -1 ; maximum number of persistent links. -1 means no limit
  351. mssql.max_links = -1 ; maximum number of links (persistent+non persistent). -1 means no limit
  352. mssql.min_error_severity = 10 ; minimum error severity to display
  353. mssql.min_message_severity = 10 ; minimum message severity to display
  354. mssql.compatability_mode = Off ; compatability mode with old versions of PHP 3.0.
  355. [Assertion]
  356. ;assert.active = Off ; assert(expr); does nothing by default
  357. ;assert.warning = On ; issue a PHP warning for each failed assertion.
  358. ;assert.bail = Off ; don't bail out by default.
  359. ;assert.callback = 0 ; user-function to be called if an assertion fails.
  360. ;assert.quiet_eval = 0 ; eval the expression with current error_reporting(). set to true if you want error_reporting(0) around the eval().
  361. [Ingres II]
  362. ii.allow_persistent = On ; allow or prevent persistent link
  363. ii.max_persistent = -1 ; maximum number of persistent links. (-1 means no limit)
  364. ii.max_links = -1 ; maximum number of links, including persistents (-1 means no limit)
  365. ii.default_database = ; default database (format : [node_id::]dbname[/srv_class]
  366. ii.default_user = ; default user
  367. ii.default_password = ; default password
  368. [Verisign Payflow Pro]
  369. pfpro.defaulthost = "test.signio.com" ; default Signio server
  370. pfpro.defaultport = 443 ; default port to connect to
  371. pfpro.defaulttimeout = 30 ; default timeout in seconds
  372. ; pfpro.proxyaddress = ; default proxy IP address (if required)
  373. ; pfpro.proxyport = ; default proxy port
  374. ; pfpro.proxylogon = ; default proxy logon
  375. ; pfpro.proxypassword = ; default proxy password
  376. ; Local Variables:
  377. ; tab-width: 4
  378. ; End: