下面是我在设置PHP.ini中的一些常用设置,现在记录下来与喜欢的朋友分享,具体的功能就不详细说了,不明白的设置项大家可以百度一下,或者参考PHP官方的文档(http://www.php.net/manual/zh/ini.php)
; On windows:
extension_dir = "c:\php\ext"
cgi.fix_pathinfo=1
fastcgi.impersonate = 1
extension=php_bz2.dll
extension=php_curl.dll
extension=php_mbstring.dll
extension=php_exif.dll
extension=php_mysql.dll
extension=php_mysqli.dll
extension=php_openssl.dll
extension=php_pdo_mysql.dll
extension=php_pdo_odbc.dll
extension=php_pdo_pgsql.dll
extension=php_pdo_sqlite.dll
extension=php_pgsql.dll
extension=php_sqlite3.dll
max_input_vars = 1000
error_log = syslog
post_max_size = 200M
cgi.force_redirect = 0
upload_max_filesize = 200M
max_file_uploads = 200
extension=php_sqlite3.dll
date.timezone = PRC
session.save_path = "/temp"
session.auto_start = 1