Skip to content

Instantly share code, notes, and snippets.

@fwolf
Created July 19, 2011 06:33
Show Gist options
  • Save fwolf/1091485 to your computer and use it in GitHub Desktop.
Save fwolf/1091485 to your computer and use it in GitHub Desktop.
php.ini
;====================================================================
[Fwolf]
;在 PHP4 中使用 date 等函数的时候,并不需要考虑时区问题,会自动获得本地时间,
;但 PHP5 中则不行,如果你们有设置好时区,
;同样的代码在不同的系统可能会产生莫名其妙的问题(比如 Windows 和 Unix 之间)。
;想要正常使用时间函数,需要在 php.ini 中设置统一的时区:
date.timezone = PRC
;也有一个函数,只是需要在程序中使用
;date_default_timezone_set('Asia/Shanghai');
upload_max_filesize = 20M
post_max_size = 30M
; Maximum amount of memory a script may consume (8MB)
memory_limit = 500M
error_reporting = E_ALL
display_error = On
log_errors = On
error_log = /var/log/php.err
; Loaded by ubuntu in another way
;extension = curl.so
extension = dio.so
;extension = gd.so
;extension = mysql.so
;extension = mysqli.so
;extension = sybase_ct.so
;ubuntu 6.06默认就装载了openssl和soap模块
;extension = openssl.so
;extension = soap.so
soap.wsdl_cache_enabled = 0
;extension = imap.so
;extension = php_screw.so
;extension = vld.so
; ;is on win, : is on nix !!!
include_path = ".:/home/fwolf/dev/include"
allow_call_time_pass_reference = Off
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment