home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 15 / AACD15.ISO / AACD / Magazine / HomeAutomation / Apache / lib / php.ini-optimized < prev   
Encoding:
INI File  |  2000-07-11  |  20.1 KB  |  410 lines

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