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.

463 lines
22 KiB

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