美文网首页
PHPini配置

PHPini配置

作者: 萨满原子 | 来源:发表于2019-07-18 16:51 被阅读0次

使用phpinfo可以查看

safe_mode = off (避免不知名错误)

register_globals (注册全局变量)

open_basedir 配置 防范目录遍历

allow_url_fopen 关闭 (文件打开的限制)

magic_quotes_gpc (转义引号和划线和空字符比如 ' 转义/')

file_upload = on (任意文件上传)

display_errors =off 避免攻击者获取报错信息

expose_php =off 隐藏版本信息

相关文章

网友评论

      本文标题:PHPini配置

      本文链接:https://www.haomeiwen.com/subject/shallctx.html