[PHP] ;=========PHP核心配置===================== output_buffering=On;可解决UTF8的BOM导致Header不能用的问题 short_open_tag=On;开启短标记 ;magic_quotes_gpc=On;防SQL注入 cgi.fix_pathinfo=1;nginx文件类型错误解析漏洞 default_socket_timeout=60 ;==========文件上传相关配置============== max_execution_time=3600 file_uploads=On upload_max_filesize=500M max_file_uploads=200 post_max_size=512M memory_limit=256M ;=========以下为DLL扩展配置============== extension_dir="./ext/" extension=php_curl.dll extension=php_sockets.dll extension=php_gd2.dll extension=php_mysql.dll extension=php_mysqli.dll extension=php_bz2.dll extension=php_mbstring.dll extension=php_mcrypt.dll extension=php_mhash.dll extension=php_openssl.dll extension=php_pdo_mysql.dll ;extension=php_pdo_sqlite.dll ;extension=php_sqlite.dll ;extension=php_sqlite3.dll ;extension=php_mongo.dll extension=php_zip.dll ;========错误日志和临时目录配置========== ;error_reporting=E_ALL & ~E_DEPRECATED & ~E_STRICT error_reporting=E_ALL & ~E_NOTICE display_errors=On html_errors=On log_errors=Off error_log="D:dataserver emperror.log" upload_tmp_dir="D:dataserver emp" [Date] date.timezone=PRC [Session] ;session.save_handler=redis ;session.save_path="tcp://127.0.0.1:6379" session.save_path="D:dataserver emp" session.name=PHPSESSID session.auto_start=0
PHP新版本配置
[PHP] ;=========PHP核心配置===================== output_buffering=On;可解决UTF8的BOM导致Header不能用的问题 short_open_tag=On;开启短标记 ;magic_quotes_gpc=On;防SQL注入 cgi.fix_pathinfo=1;nginx文件类型错误解析漏洞 default_socket_timeout=60 ;==========文件上传相关配置============== max_execution_time=3600 file_uploads=On upload_max_filesize=500M max_file_uploads=200 post_max_size=512M memory_limit=256M ;=========以下为DLL扩展配置============== extension_dir="./ext/" extension=php_curl.dll extension=php_sockets.dll extension=php_gd2.dll extension=php_mysql.dll extension=php_mysqli.dll extension=php_bz2.dll extension=php_mbstring.dll ;extension=php_mcrypt.dll ;extension=php_mhash.dll extension=php_openssl.dll extension=php_pdo_mysql.dll ;extension=php_pdo_sqlite.dll ;extension=php_sqlite.dll ;extension=php_sqlite3.dll ;extension=php_mongo.dll ;extension=php_zip.dll ;========错误日志和临时目录配置========== ;error_reporting=E_ALL & ~E_DEPRECATED & ~E_STRICT error_reporting=E_ALL & ~E_NOTICE display_errors=On html_errors=On log_errors=Off error_log="C:dataserver emperror.log" upload_tmp_dir="C:dataserver emp" [Date] date.timezone=PRC [Session] ;session.save_handler=redis ;session.save_path="tcp://127.0.0.1:6379" session.save_path="C:dataserver emp" session.name=PHPSESSID session.auto_start=0