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.

434 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 output)
  136. ; For production web sites, you're strongly encouraged
  137. ; to turn this feature off, and use error logging instead (see below).
  138. ; Keeping display_errors enabled on a production web site may reveal
  139. ; security information to end users, such as file paths on your Web server,
  140. ; your database schema or other information.
  141. log_errors = Off ; Log errors into a log file (server-specific log, stderr, or error_log (below))
  142. ; As stated above, you're strongly advised to use error logging in place of
  143. ; error displaying on production web sites.
  144. track_errors = Off ; Store the last error/warning message in $php_errormsg (boolean)
  145. ;error_prepend_string = "<font color=ff0000>" ; string to output before an error message
  146. ;error_append_string = "</font>" ; string to output after an error message
  147. ;error_log = filename ; log errors to specified file
  148. ;error_log = syslog ; log errors to syslog (Event Log on NT, not valid in Windows 95)
  149. warn_plus_overloading = Off ; warn if the + operator is used with strings
  150. ;;;;;;;;;;;;;;;;;
  151. ; Data Handling ;
  152. ;;;;;;;;;;;;;;;;;
  153. variables_order = "GPCS" ; This directive describes the order in which PHP registers
  154. ; GET, POST, Cookie, Environment and Built-in variables (G, P,
  155. ; C, E & S respectively, often referred to as EGPCS or GPC).
  156. ; Registration is done from left to right, newer values override
  157. ; older values.
  158. register_globals = Off ; Whether or not to register the EGPCS variables as global
  159. ; variables. You may want to turn this off if you don't want
  160. ; to clutter your scripts' global scope with user data. This makes
  161. ; most sense when coupled with track_vars - in which case you can
  162. ; access all of the GPC variables through the $HTTP_*_VARS[],
  163. ; variables.
  164. register_argc_argv = Off ; This directive tells PHP whether to declare the argv&argc
  165. ; variables (that would contain the GET information). If you
  166. ; don't use these variables, you should turn it off for
  167. ; increased performance
  168. track_vars = On ; enable the $HTTP_*_VARS[] arrays, where * is one of
  169. ; ENV, POST, GET, COOKIE or SERVER.
  170. gpc_order = "GPC" ; This directive is deprecated. Use variables_order instead.
  171. ; Magic quotes
  172. magic_quotes_gpc = Off ; magic quotes for incoming GET/POST/Cookie data
  173. magic_quotes_runtime= Off ; magic quotes for runtime-generated data, e.g. data from SQL, from exec(), etc.
  174. magic_quotes_sybase = Off ; Use Sybase-style magic quotes (escape ' with '' instead of \')
  175. ; automatically add files before or after any PHP document
  176. auto_prepend_file =
  177. auto_append_file =
  178. ; As of 4.0b4, PHP always outputs a character encoding by default in
  179. ; the Content-type: header. To disable sending of the charset, simply
  180. ; set it to be empty.
  181. ; PHP's built-in default is text/html
  182. default_mimetype = "text/html"
  183. ;default_charset = "iso-8859-1"
  184. ;;;;;;;;;;;;;;;;;;;;;;;;;
  185. ; Paths and Directories ;
  186. ;;;;;;;;;;;;;;;;;;;;;;;;;
  187. include_path = ; UNIX: "/path1:/path2" Windows: "\path1;\path2"
  188. doc_root = ; the root of the php pages, used only if nonempty
  189. user_dir = ; the directory under which php opens the script using /~username, used only if nonempty
  190. ;upload_tmp_dir = ; temporary directory for HTTP uploaded files (will use system default if not specified)
  191. upload_max_filesize = 2097152 ; 2 Meg default limit on file uploads
  192. extension_dir = ./ ; directory in which the loadable extensions (modules) reside
  193. enable_dl = On ; Whether or not to enable the dl() function.
  194. ; The dl() function does NOT properly work in multithreaded
  195. ; servers, such as IIS or Zeus, and is automatically disabled
  196. ; on them.
  197. ;;;;;;;;;;;;;;;;;;;;;;
  198. ; Dynamic Extensions ;
  199. ;;;;;;;;;;;;;;;;;;;;;;
  200. ; if you wish to have an extension loaded automaticly, use the
  201. ; following syntax: extension=modulename.extension
  202. ; for example, on windows,
  203. ; extension=msql.dll
  204. ; or under UNIX,
  205. ; extension=msql.so
  206. ; Note that it should be the name of the module only, no directory information
  207. ; needs to go here. Specify the location of the extension with the extension_dir directive above.
  208. ;Windows Extensions
  209. ;extension=php_mysql.dll
  210. ;extension=php_nsmail.dll
  211. ;extension=php_calendar.dll
  212. ;extension=php_dbase.dll
  213. ;extension=php_filepro.dll
  214. ;extension=php_gd.dll
  215. ;extension=php_dbm.dll
  216. ;extension=php_mssql.dll
  217. ;extension=php_zlib.dll
  218. ;extension=php_filepro.dll
  219. ;extension=php_imap4r2.dll
  220. ;extension=php_ldap.dll
  221. ;extension=php_crypt.dll
  222. ;extension=php_msql2.dll
  223. ;extension=php_odbc.dll
  224. ;;;;;;;;;;;;;;;;;;;
  225. ; Module Settings ;
  226. ;;;;;;;;;;;;;;;;;;;
  227. [Syslog]
  228. define_syslog_variables = Off ; Whether or not to define the various syslog variables,
  229. ; e.g. $LOG_PID, $LOG_CRON, etc. Turning it off is a
  230. ; good idea performance-wise. In runtime, you can define
  231. ; these variables by calling define_syslog_variables()
  232. [mail function]
  233. SMTP = localhost ;for win32 only
  234. sendmail_from = me@localhost.com ;for win32 only
  235. ;sendmail_path = ;for unix only, may supply arguments as well (default is 'sendmail -t -i')
  236. [Debugger]
  237. debugger.host = localhost
  238. debugger.port = 7869
  239. debugger.enabled = False
  240. [Logging]
  241. ; These configuration directives are used by the example logging mechanism.
  242. ; See examples/README.logging for more explanation.
  243. ;logging.method = db
  244. ;logging.directory = /path/to/log/directory
  245. [SQL]
  246. sql.safe_mode = Off
  247. [ODBC]
  248. ;uodbc.default_db = Not yet implemented
  249. ;uodbc.default_user = Not yet implemented
  250. ;uodbc.default_pw = Not yet implemented
  251. uodbc.allow_persistent = On ; allow or prevent persistent links
  252. uodbc.check_persistent = On ; check that a connection is still validbefore reuse
  253. uodbc.max_persistent = -1 ; maximum number of persistent links. -1 means no limit
  254. uodbc.max_links = -1 ; maximum number of links (persistent+non persistent). -1 means no limit
  255. uodbc.defaultlrl = 4096 ; Handling of LONG fields. Returns number of bytes to variables, 0 means passthru
  256. uodbc.defaultbinmode = 1 ; Handling of binary data. 0 means passthru, 1 return as is, 2 convert to char
  257. ; See the documentation on odbc_binmode and odbc_longreadlen for an explanation of uodbc.defaultlrl
  258. ; and uodbc.defaultbinmode
  259. [MySQL]
  260. mysql.allow_persistent = On ; allow or prevent persistent link
  261. mysql.max_persistent = -1 ; maximum number of persistent links. -1 means no limit
  262. mysql.max_links = -1 ; maximum number of links (persistent+non persistent). -1 means no limit
  263. mysql.default_port = ; default port number for mysql_connect(). If unset,
  264. ; mysql_connect() will use the $MYSQL_TCP_PORT, or the mysql-tcp
  265. ; entry in /etc/services, or the compile-time defined MYSQL_PORT
  266. ; (in that order). Win32 will only look at MYSQL_PORT.
  267. mysql.default_socket = ; default socket name for local MySQL connects. If empty, uses the built-in
  268. ; MySQL defaults
  269. mysql.default_host = ; default host for mysql_connect() (doesn't apply in safe mode)
  270. mysql.default_user = ; default user for mysql_connect() (doesn't apply in safe mode)
  271. mysql.default_password = ; default password for mysql_connect() (doesn't apply in safe mode)
  272. ; Note that this is generally a *bad* idea to store passwords
  273. ; in this file. *Any* user with PHP access can run
  274. ; 'echo cfg_get_var("mysql.default_password")' and reveal that
  275. ; password! And of course, any users with read access to this
  276. ; file will be able to reveal the password as well.
  277. [mSQL]
  278. msql.allow_persistent = On ; allow or prevent persistent link
  279. msql.max_persistent = -1 ; maximum number of persistent links. -1 means no limit
  280. msql.max_links = -1 ; maximum number of links (persistent+non persistent). -1 means no limit
  281. [PostgresSQL]
  282. pgsql.allow_persistent = On ; allow or prevent persistent link
  283. pgsql.max_persistent = -1 ; maximum number of persistent links. -1 means no limit
  284. pgsql.max_links = -1 ; maximum number of links (persistent+non persistent). -1 means no limit
  285. [Sybase]
  286. sybase.allow_persistent = On ; allow or prevent persistent link
  287. sybase.max_persistent = -1 ; maximum number of persistent links. -1 means no limit
  288. sybase.max_links = -1 ; maximum number of links (persistent+non persistent). -1 means no limit
  289. ;sybase.interface_file = "/usr/sybase/interfaces"
  290. sybase.min_error_severity = 10 ; minimum error severity to display
  291. sybase.min_message_severity = 10 ; minimum message severity to display
  292. sybase.compatability_mode = Off ; compatability mode with old versions of PHP 3.0.
  293. ; If on, this will cause PHP to automatically assign types to results
  294. ; according to their Sybase type, instead of treating them all as
  295. ; strings. This compatability mode will probably not stay around
  296. ; forever, so try applying whatever necessary changes to your code,
  297. ; and turn it off.
  298. [Sybase-CT]
  299. sybct.allow_persistent = On ; allow or prevent persistent link
  300. sybct.max_persistent = -1 ; maximum number of persistent links. -1 means no limit
  301. sybct.max_links = -1 ; maximum number of links (persistent+non persistent). -1 means no limit
  302. sybct.min_server_severity = 10 ; minimum server message severity to display
  303. sybct.min_client_severity = 10 ; minimum client message severity to display
  304. [bcmath]
  305. bcmath.scale = 0 ; number of decimal digits for all bcmath functions
  306. [browscap]
  307. ;browscap = extra/browscap.ini
  308. [Informix]
  309. ifx.default_host = ; default host for ifx_connect() (doesn't apply in safe mode)
  310. ifx.default_user = ; default user for ifx_connect() (doesn't apply in safe mode)
  311. ifx.default_password = ; default password for ifx_connect() (doesn't apply in safe mode)
  312. ifx.allow_persistent = On ; allow or prevent persistent link
  313. ifx.max_persistent = -1 ; maximum number of persistent links. -1 means no limit
  314. ifx.max_links = -1 ; maximum number of links (persistent+non persistent). -1 means no limit
  315. ifx.textasvarchar = 0 ; if set on, select statements return the contents of a text blob instead of it's id
  316. ifx.byteasvarchar = 0 ; if set on, select statements return the contents of a byte blob instead of it's id
  317. ifx.charasvarchar = 0 ; trailing blanks are stripped from fixed-length char columns. May help the life
  318. ; of Informix SE users.
  319. ifx.blobinfile = 0 ; if set on, the contents of text&byte blobs are dumped to a file instead of
  320. ; keeping them in memory
  321. ifx.nullformat = 0 ; NULL's are returned as empty strings, unless this is set to 1. In that case,
  322. ; NULL's are returned as string 'NULL'.
  323. [Session]
  324. session.save_handler = files ; handler used to store/retrieve data
  325. session.save_path = /tmp ; argument passed to save_handler
  326. ; in the case of files, this is the
  327. ; path where data files are stored
  328. session.use_cookies = 1 ; whether to use cookies
  329. session.name = PHPSESSID
  330. ; name of the session
  331. ; is used as cookie name
  332. session.auto_start = 0 ; initialize session on request startup
  333. session.cookie_lifetime = 0 ; lifetime in seconds of cookie
  334. ; or if 0, until browser is restarted
  335. session.cookie_path = / ; the path the cookie is valid for
  336. session.cookie_domain = ; the domain the cookie is valid for
  337. session.serialize_handler = php ; handler used to serialize data
  338. ; php is the standard serializer of PHP
  339. session.gc_probability = 1 ; percentual probability that the
  340. ; 'garbage collection' process is started
  341. ; on every session initialization
  342. session.gc_maxlifetime = 1440 ; after this number of seconds, stored
  343. ; data will be seen as 'garbage' and
  344. ; cleaned up by the gc process
  345. session.referer_check = ; check HTTP Referer to invalidate
  346. ; externally stored URLs containing ids
  347. session.entropy_length = 0 ; how many bytes to read from the file
  348. session.entropy_file = ; specified here to create the session id
  349. ; session.entropy_length = 16
  350. ; session.entropy_file = /dev/urandom
  351. session.cache_limiter = nocache ; set to {nocache,private,public} to
  352. ; determine HTTP caching aspects
  353. session.cache_expire = 180 ; document expires after n minutes
  354. [MSSQL]
  355. ;extension=php_mssql.dll
  356. mssql.allow_persistent = On ; allow or prevent persistent link
  357. mssql.max_persistent = -1 ; maximum number of persistent links. -1 means no limit
  358. mssql.max_links = -1 ; maximum number of links (persistent+non persistent). -1 means no limit
  359. mssql.min_error_severity = 10 ; minimum error severity to display
  360. mssql.min_message_severity = 10 ; minimum message severity to display
  361. mssql.compatability_mode = Off ; compatability mode with old versions of PHP 3.0.
  362. [Assertion]
  363. ;assert.active = Off ; assert(expr); does nothing by default
  364. ;assert.warning = On ; issue a PHP warning for each failed assertion.
  365. ;assert.bail = Off ; don't bail out by default.
  366. ;assert.callback = 0 ; user-function to be called if an assertion fails.
  367. ;assert.quiet_eval = 0 ; eval the expression with current error_reporting(). set to true if you want error_reporting(0) around the eval().
  368. [Ingres II]
  369. ii.allow_persistent = On ; allow or prevent persistent link
  370. ii.max_persistent = -1 ; maximum number of persistent links. (-1 means no limit)
  371. ii.max_links = -1 ; maximum number of links, including persistents (-1 means no limit)
  372. ii.default_database = ; default database (format : [node_id::]dbname[/srv_class]
  373. ii.default_user = ; default user
  374. ii.default_password = ; default password
  375. [Verisign Payflow Pro]
  376. pfpro.defaulthost = "test.signio.com" ; default Signio server
  377. pfpro.defaultport = 443 ; default port to connect to
  378. pfpro.defaulttimeout = 30 ; default timeout in seconds
  379. ; pfpro.proxyaddress = ; default proxy IP address (if required)
  380. ; pfpro.proxyport = ; default proxy port
  381. ; pfpro.proxylogon = ; default proxy logon
  382. ; pfpro.proxypassword = ; default proxy password
  383. ; Local Variables:
  384. ; tab-width: 4
  385. ; End: