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.

288 lines
14 KiB

27 years ago
27 years ago
27 years ago
27 years ago
27 years ago
27 years ago
27 years ago
27 years ago
27 years ago
27 years ago
27 years ago
27 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 (they probably won't).
  17. ;
  18. ; Options are specified using the syntax key = value or key = "complex value".
  19. ; Key names are *case sensitive*. foo = bar is different from FOO = bar.
  20. ; 'value' can be any number, word or keyword (keywords are On, Off, True,
  21. ; False, Yes and No, and are case insensitive).
  22. ; 'complex value' can be just about anything, expcept for " and a newline
  23. ; Boolean flags can be turned on using the values 1, On, True or Yes.
  24. ; They can be turned off using the values 0, Off, False or No.
  25. ;
  26. ; All the values in the php.ini-dist file correspond to the builtin
  27. ; defaults (that is, if no php.ini is used, or if you delete these lines,
  28. ; the builtin defaults will be identical).
  29. ;;;;;;;;;;;;;;;;;;;;
  30. ; Language Options ;
  31. ;;;;;;;;;;;;;;;;;;;;
  32. engine = On ; Enable the PHP scripting language engine under Apache
  33. short_open_tag = On ; allow the <? tag. otherwise, only <?php and <script> tags are recognized.
  34. asp_tags = Off ; allow ASP-style <% %> tags
  35. precision = 14 ; number of significant digits displayed in floating point numbers
  36. y2k_compliance = Off ; whether to be year 2000 compliant (will cause problems with non y2k compliant browsers)
  37. output_buffering = Off ; Output buffering allows you to send header lines (including cookies)
  38. ; even after you send body content, in the price of slowing PHP's
  39. ; output layer a bit.
  40. ; You can enable output buffering by in runtime by calling the output
  41. ; buffering functions, or enable output buffering for all files
  42. ; by setting this directive to On.
  43. ; Safe Mode
  44. safe_mode = Off
  45. safe_mode_exec_dir =
  46. ; Colors for Syntax Highlighting mode. Anything that's acceptable in <font color=???> would work.
  47. highlight.string = #DD0000
  48. highlight.comment = #FF8000
  49. highlight.keyword = #007700
  50. highlight.bg = #FFFFFF
  51. highlight.default = #0000BB
  52. highlight.html = #000000
  53. ; Misc
  54. expose_php = On ; Decides whether PHP may expose the fact that it is installed on the
  55. ; server (e.g., by adding its signature to the Web server header).
  56. ; It is no security threat in any way, but it makes it possible
  57. ; to determine whether you use PHP on your server or not.
  58. ;;;;;;;;;;;;;;;;;;;
  59. ; Resource Limits ;
  60. ;;;;;;;;;;;;;;;;;;;
  61. max_execution_time = 30 ; Maximum execution time of each script, in seconds (UNIX only)
  62. memory_limit = 8388608 ; Maximum amount of memory a script may consume (8MB)
  63. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  64. ; Error handling and logging ;
  65. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  66. ; error_reporting is a bit-field. Add each number up to get desired error reporting level
  67. ; 1 = Normal errors
  68. ; 2 = Normal warnings
  69. ; 4 = Parser errors
  70. ; 8 = Notices - warnings you can ignore, but sometimes imply a bug (e.g., using an uninitialized variable)
  71. error_reporting = 7
  72. display_errors = On ; Print out errors (as a part of the HTML script)
  73. log_errors = Off ; Log errors into a log file (server-specific log, stderr, or error_log (below))
  74. track_errors = Off ; Store the last error/warning message in $php_errormsg (boolean)
  75. ;error_prepend_string = "<font color=ff0000>" ; string to output before an error message
  76. ;error_append_string = "</font>" ; string to output after an error message
  77. ;error_log = filename ; log errors to specified file
  78. ;error_log = syslog ; log errors to syslog (Event Log on NT, not valid in Windows 95)
  79. warn_plus_overloading = Off ; warn if the + operator is used with strings
  80. ;;;;;;;;;;;;;;;;;
  81. ; Data Handling ;
  82. ;;;;;;;;;;;;;;;;;
  83. gpc_order = "GPC" ; Order of evaluation of GET/POST/Cookie data. Later values override
  84. ; earlier values (e.g., by default, POST variables override GET variables,
  85. ; and Cookie variables override both POST and GET variables).
  86. gpc_globals = On ; Whether or not to define GET/POST/Cookie variables in the global
  87. ; scope. You may want to turn this off if you don't want
  88. ; to clutter your scripts' global scope with user data. This makes
  89. ; most sense when coupled with track_vars - in which case you can
  90. ; access all of the GPC variables through the $HTTP_GET_VARS[],
  91. ; $HTTP_POST_VARS[] and $HTTP_COOKIE_VARS[] variables.
  92. track_vars = On ; enable $HTTP_GET_VARS[], $HTTP_POST_VARS[] and $HTTP_COOKIE_VARS[] arrays
  93. ; Magic quotes
  94. magic_quotes_gpc = On ; magic quotes for incoming GET/POST/Cookie data
  95. magic_quotes_runtime= Off ; magic quotes for runtime-generated data, e.g. data from SQL, from exec(), etc.
  96. magic_quotes_sybase = Off ; Use Sybase-style magic quotes (escape ' with '' instead of \')
  97. ; automatically add files before or after any PHP document
  98. auto_prepend_file =
  99. auto_append_file =
  100. ;;;;;;;;;;;;;;;;;;;;;;;;;
  101. ; Paths and Directories ;
  102. ;;;;;;;;;;;;;;;;;;;;;;;;;
  103. include_path = ; UNIX: "/path1:/path2" Windows: "\path1;\path2"
  104. doc_root = ; the root of the php pages, used only if nonempty
  105. user_dir = ; the directory under which php opens the script using /~username, used only if nonempty
  106. ;upload_tmp_dir = ; temporary directory for HTTP uploaded files (will use system default if not specified)
  107. upload_max_filesize = 2097152 ; 2 Meg default limit on file uploads
  108. extension_dir = ./ ; directory in which the loadable extensions (modules) reside
  109. ;;;;;;;;;;;;;;;;;;;;;;
  110. ; Dynamic Extensions ;
  111. ;;;;;;;;;;;;;;;;;;;;;;
  112. ; if you wish to have an extension loaded automaticly, use the
  113. ; following syntax: extension=modulename.extension
  114. ; for example, on windows,
  115. ; extension=msql.dll
  116. ; or under UNIX,
  117. ; extension=msql.so
  118. ; Note that it should be the name of the module only, no directory information
  119. ; needs to go here. Specify the location of the extension with the extension_dir directive above.
  120. ;Windows Extensions
  121. ;extension=php_mysql.dll
  122. ;extension=php_nsmail.dll
  123. ;extension=php_calendar.dll
  124. ;extension=php_dbase.dll
  125. ;extension=php_filepro.dll
  126. ;extension=php_gd.dll
  127. ;extension=php_dbm.dll
  128. ;extension=php_mssql.dll
  129. ;extension=php_zlib.dll
  130. ;extension=php_filepro.dll
  131. ;extension=php_imap4r2.dll
  132. ;extension=php_ldap.dll
  133. ;extension=php_crypt.dll
  134. ;extension=php_msql2.dll
  135. ;extension=php_odbc.dll
  136. ;;;;;;;;;;;;;;;;;;;
  137. ; Module Settings ;
  138. ;;;;;;;;;;;;;;;;;;;
  139. [Syslog]
  140. define_syslog_variables = Off ; Whether or not to define the various syslog variables,
  141. ; e.g. $LOG_PID, $LOG_CRON, etc. Turning it off is a
  142. ; good idea performance-wise. In runtime, you can define
  143. ; these variables by calling define_syslog_variables()
  144. [mail function]
  145. SMTP = localhost ;for win32 only
  146. sendmail_from = me@localhost.com ;for win32 only
  147. sendmail_path = ;for unix only, may supply arguments as well (default is sendmail -t)
  148. [Debugger]
  149. debugger.host = localhost
  150. debugger.port = 7869
  151. debugger.enabled = False
  152. [Logging]
  153. ; These configuration directives are used by the example logging mechanism.
  154. ; See examples/README.logging for more explanation.
  155. ;logging.method = db
  156. ;logging.directory = /path/to/log/directory
  157. [SQL]
  158. sql.safe_mode = Off
  159. [ODBC]
  160. ;uodbc.default_db = Not yet implemented
  161. ;uodbc.default_user = Not yet implemented
  162. ;uodbc.default_pw = Not yet implemented
  163. uodbc.allow_persistent = On ; allow or prevent persistent links
  164. uodbc.max_persistent = -1 ; maximum number of persistent links. -1 means no limit
  165. uodbc.max_links = -1 ; maximum number of links (persistent+non persistent). -1 means no limit
  166. uodbc.defaultlrl = 4096 ; Handling of LONG fields. Returns number of bytes to variables, 0 means passthru
  167. uodbc.defaultbinmode = 1 ; Handling of binary data. 0 means passthru, 1 return as is, 2 convert to char
  168. ; See the documentation on odbc_binmode and odbc_longreadlen for an explanation of uodbc.defaultlrl
  169. ; and uodbc.defaultbinmode
  170. [MySQL]
  171. mysql.allow_persistent = On ; allow or prevent persistent link
  172. mysql.max_persistent = -1 ; maximum number of persistent links. -1 means no limit
  173. mysql.max_links = -1 ; maximum number of links (persistent+non persistent). -1 means no limit
  174. mysql.default_port = ; default port number for mysql_connect(). If unset,
  175. ; mysql_connect() will use the $MYSQL_TCP_PORT, or the mysql-tcp
  176. ; entry in /etc/services, or the compile-time defined MYSQL_PORT
  177. ; (in that order). Win32 will only look at MYSQL_PORT.
  178. mysql.default_host = ; default host for mysql_connect() (doesn't apply in safe mode)
  179. mysql.default_user = ; default user for mysql_connect() (doesn't apply in safe mode)
  180. mysql.default_password = ; default password for mysql_connect() (doesn't apply in safe mode)
  181. ; Note that this is generally a *bad* idea to store passwords
  182. ; in this file. *Any* user with PHP access can run
  183. ; 'echo cfg_get_var("mysql.default_password")' and reveal that
  184. ; password! And of course, any users with read access to this
  185. ; file will be able to reveal the password as well.
  186. [mSQL]
  187. msql.allow_persistent = On ; allow or prevent persistent link
  188. msql.max_persistent = -1 ; maximum number of persistent links. -1 means no limit
  189. msql.max_links = -1 ; maximum number of links (persistent+non persistent). -1 means no limit
  190. [PostgresSQL]
  191. pgsql.allow_persistent = On ; allow or prevent persistent link
  192. pgsql.max_persistent = -1 ; maximum number of persistent links. -1 means no limit
  193. pgsql.max_links = -1 ; maximum number of links (persistent+non persistent). -1 means no limit
  194. [Sybase]
  195. sybase.allow_persistent = On ; allow or prevent persistent link
  196. sybase.max_persistent = -1 ; maximum number of persistent links. -1 means no limit
  197. sybase.max_links = -1 ; maximum number of links (persistent+non persistent). -1 means no limit
  198. ;sybase.interface_file = "/usr/sybase/interfaces"
  199. sybase.min_error_severity = 10 ; minimum error severity to display
  200. sybase.min_message_severity = 10 ; minimum message severity to display
  201. sybase.compatability_mode = Off ; compatability mode with old versions of PHP 3.0.
  202. ; If on, this will cause PHP to automatically assign types to results
  203. ; according to their Sybase type, instead of treating them all as
  204. ; strings. This compatability mode will probably not stay around
  205. ; forever, so try applying whatever necessary changes to your code,
  206. ; and turn it off.
  207. [Sybase-CT]
  208. sybct.allow_persistent = On ; allow or prevent persistent link
  209. sybct.max_persistent = -1 ; maximum number of persistent links. -1 means no limit
  210. sybct.max_links = -1 ; maximum number of links (persistent+non persistent). -1 means no limit
  211. sybct.min_server_severity = 10 ; minimum server message severity to display
  212. sybct.min_client_severity = 10 ; minimum client message severity to display
  213. [bcmath]
  214. bcmath.scale = 0 ; number of decimal digits for all bcmath functions
  215. [browscap]
  216. ;browscap = extra/browscap.ini
  217. [Informix]
  218. ifx.default_host = ; default host for ifx_connect() (doesn't apply in safe mode)
  219. ifx.default_user = ; default user for ifx_connect() (doesn't apply in safe mode)
  220. ifx.default_password = ; default password for ifx_connect() (doesn't apply in safe mode)
  221. ifx.allow_persistent = On ; allow or prevent persistent link
  222. ifx.max_persistent = -1 ; maximum number of persistent links. -1 means no limit
  223. ifx.max_links = -1 ; maximum number of links (persistent+non persistent). -1 means no limit
  224. ifx.textasvarchar = 0 ; if set on, select statements return the contents of a text blob instead of it's id
  225. ifx.byteasvarchar = 0 ; if set on, select statements return the contents of a byte blob instead of it's id
  226. ifx.charasvarchar = 0 ; trailing blanks are stripped from fixed-length char columns. May help the life
  227. ; of Informix SE users.
  228. ifx.blobinfile = 0 ; if set on, the contents of text&byte blobs are dumped to a file instead of
  229. ; keeping them in memory
  230. ifx.nullformat = 0 ; NULL's are returned as empty strings, unless this is set to 1. In that case,
  231. ; NULL's are returned as string 'NULL'.
  232. [Session]
  233. session.save_handler = files ; handler used to store/retrieve data
  234. session.save_path = /tmp ; argument passed to save_handler
  235. ; in the case of files, this is the
  236. ; path where data files are stored
  237. session.name = PHPSESSID ; name of the session
  238. ; is used as cookie name
  239. session.auto_start = 0 ; initialize session on request startup
  240. session.lifetime = 0 ; lifetime in seconds of cookie
  241. ; or if 0, until browser is restarted
  242. session.serialize_handler = php ; handler used to serialize data
  243. ; php is the standard serializer of PHP
  244. session.gc_probability = 1 ; procentual probability that the
  245. ; 'garbage collection' process is started
  246. ; on every session initialization
  247. session.gc_maxlifetime = 1440 ; after this number of seconds, stored
  248. ; data will be seen as 'garbage' and
  249. ; cleaned up by the gc process