home *** CD-ROM | disk | FTP | other *** search
/ PC Online 1999 November / PCONLINE_11_99.ISO / filesbbs / OS2 / APCHSSL2.ZIP / OS2HTTPD / public / htdocs / php / php3.ini < prev   
Encoding:
INI File  |  1999-08-23  |  11.4 KB  |  243 lines

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