本帖最后由 jdiscuz 于 2009-1-18 22:44 编辑
见我的PHP配置 已经去掉注释,方便阅读。
- [PHP]
- engine = On
- zend.ze1_compatibility_mode = Off
- short_open_tag = On
- asp_tags = Off
- precision = 12
- y2k_compliance = On
- output_buffering = Off
- zlib.output_compression = Off
- ;zlib.output_compression_level = -1
- ;zlib.output_handler =
- implicit_flush = Off
- unserialize_callback_func=
- serialize_precision = 100
- allow_call_time_pass_reference = On
- ; Safe Mode
- safe_mode = Off
- safe_mode_gid = Off
- safe_mode_include_dir =
- safe_mode_exec_dir =
- safe_mode_allowed_env_vars = PHP_
- safe_mode_protected_env_vars = LD_LIBRARY_PATH
- ;open_basedir =
- disable_functions = passthru,exec,system,chroot,scandir,chgrp,chown,shell_exec,proc_open,proc_get_status
- disable_classes =
- ; Misc
- expose_php = On
- ;;;;;;;;;;;;;;;;;;;
- ; Resource Limits ;
- ;;;;;;;;;;;;;;;;;;;
- max_execution_time = 30
- max_input_time = 60
- ;max_input_nesting_level = 64
- memory_limit = 128M
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ; Error handling and logging ;
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- error_reporting = E_ALL|E_ERROR|E_USER_ERROR|E_USER_WARNING|E_USER_NOTICE
- display_errors = On
- display_startup_errors = Off
- log_errors = Off
- log_errors_max_len = 1024
- ignore_repeated_errors = Off
- ignore_repeated_source = Off
- report_memleaks = On
- ;report_zend_debug = 0
- track_errors = Off
- ;;;;;;;;;;;;;;;;;
- ; Data Handling ;
- ;;;;;;;;;;;;;;;;;
- variables_order = "EGPCS"
- register_globals = Off
- register_long_arrays = On
- register_argc_argv = On
- auto_globals_jit = On
- post_max_size = 8M
- ; Magic quotes
- magic_quotes_gpc = On
- magic_quotes_runtime = Off
- magic_quotes_sybase = Off
- auto_prepend_file =
- auto_append_file =
- default_mimetype = "text/html"
- ;;;;;;;;;;;;;;;;;;;;;;;;;
- ; Paths and Directories ;
- ;;;;;;;;;;;;;;;;;;;;;;;;;
- doc_root =
- user_dir =
- extension_dir = "d:\php\php5\ext"
- enable_dl = On
- ;;;;;;;;;;;;;;;;
- ; File Uploads ;
- ;;;;;;;;;;;;;;;;
- file_uploads = On
- upload_tmp_dir = c:\temp
- upload_max_filesize = 16M
- ;;;;;;;;;;;;;;;;;;
- ; Fopen wrappers ;
- ;;;;;;;;;;;;;;;;;;
- allow_url_fopen = On
- allow_url_include = Off
- default_socket_timeout = 60
- ;;;;;;;;;;;;;;;;;;;;;;
- ; Dynamic Extensions ;
- ;;;;;;;;;;;;;;;;;;;;;;
- extension=php_gd2.dll
- extension=php_mbstring.dll
- extension=php_mysql.dll
- ;;;;;;;;;;;;;;;;;;;
- ; Module Settings ;
- ;;;;;;;;;;;;;;;;;;;
- [Date]
- [filter]
- [iconv]
- [sqlite]
- [Pcre]
- [Syslog]
- define_syslog_variables = Off
- [mail function]
- SMTP = localhost
- smtp_port = 25
- [SQL]
- sql.safe_mode = Off
- [ODBC]
- odbc.allow_persistent = On
- odbc.check_persistent = On
- odbc.max_persistent = -1
- odbc.max_links = -1
- odbc.defaultlrl = 4096
- odbc.defaultbinmode = 1
- [MySQL]
- mysql.allow_persistent = On
- mysql.max_persistent = -1
- mysql.max_links = -1
- mysql.default_port =
- mysql.default_socket =
- mysql.default_host =
- mysql.default_user =
- mysql.default_password =
- mysql.connect_timeout = 60
- mysql.trace_mode = Off
- [MySQLi]
- mysqli.max_links = -1
- mysqli.default_port = 3306
- mysqli.default_socket =
- mysqli.default_host =
- mysqli.default_user =
- mysqli.default_pw =
- mysqli.reconnect = Off
- [Session]
- session.save_handler = files
- session.use_cookies = 1
- session.name = PHPSESSID
- session.auto_start = 0
- session.cookie_lifetime = 0
- session.cookie_path = /
- session.cookie_domain =
- session.cookie_httponly =
- session.serialize_handler = php
- session.gc_probability = 1
- session.gc_divisor = 100
- session.gc_maxlifetime = 1440
- session.bug_compat_42 = 1
- session.bug_compat_warn = 1
- session.referer_check =
- session.entropy_length = 0
- session.entropy_file =
- session.cache_limiter = nocache
- session.cache_expire = 180
- session.use_trans_sid = 0
- session.hash_function = 0
- session.hash_bits_per_character = 4
- url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset="
- [Tidy]
- tidy.clean_output = Off
- [soap]
- soap.wsdl_cache_enabled=1
- soap.wsdl_cache_dir="/tmp"
- soap.wsdl_cache_ttl=86400
- [Zend]
- zend_extension_manager.optimizer_ts="D:\php\Zend\ZendOptimizer-3.3.0\lib\Optimizer-3.3.0"
- zend_extension_ts="D:\php\Zend\ZendOptimizer-3.3.0\lib\ZendExtensionManager.dll"
复制代码 |