home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 15 / AACD15.ISO / AACD / Magazine / HomeAutomation / Apache / lib / php.ini-dist next >
Encoding:
INI File  |  2000-07-11  |  20.3 KB  |  423 lines

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