PHP函数set_magic_quotes_runtime()的作用
来源:互联网 发布:网络彩票能赚钱吗 编辑:程序博客网 时间:2024/05/16 02:42
新手经常遇到的问题是特殊字符提交的时候提示数据库错误,今天给大家介绍一个set_magic_quotes_runtime函数,来帮助我们过滤里面的内容
php函数 set_magic_quotes_runtime(0); 可以修改php.ini中 magic_quotes_runtime boolean的设置当你的数据中有一些
\
"
'
这样的字符要写入到数据库里面,又想不被过滤掉的时候,它就很有用,会在这些字符前加上\
中国\地大物博"哈哈"
中国\\地大物博\"哈哈\"set_magic_quotes_runtime是用来设置PHP 环境配置的变量 magic_quotes_runtime 值。
0-关闭 1-打开
php程序中检测状态用get_magic_quotes_runtime,返回 0 表示关闭本功能;返回 1 表示本功能打开。若 magic_quotes_runtime 打开时,所有外部引入的数据库资料或者文件等等都会自动转为含有反斜线溢出字符的资料。
例如在用PHP导入数据库的时候就会用到。
- PHP函数set_magic_quotes_runtime()的作用
- PHP函数set_magic_quotes_runtime()的作用
- PHP函数set_magic_quotes_runtime()的作用
- PHP函数set_magic_quotes_runtime()的作用
- set_magic_quotes_runtime()函数的作用
- PHP中set_magic_quotes_runtime()和get_magic_quotes_gpc函数的作用
- php函数set_magic_quotes_runtime()使用方法
- PHP函数set_magic_quotes_runtime
- set_magic_quotes_runtime(0)函数作用解释
- set_magic_quotes_runtime(0)函数作用解释
- php中的set_magic_quotes_runtime()作用和用法
- set_magic_quotes_runtime函数
- set_magic_quotes_runtime() 函数过时
- set_magic_quotes_runtime()的解释
- set_magic_quotes_runtime()的解释
- PHP中set_magic_quotes_runtime()和get_magic_quotes_gpc()
- set_magic_quotes_runtime()
- set_magic_quotes_runtime 和 set_magic_quotes_gpc 函数解释
- Linux文件rwx属性的含义
- svn版本控制说明
- C++拷贝构造函数(深拷贝,浅拷贝)
- 开始 网络广告 研究之旅--怎样使用网络广告赚钱?
- 经典正则表达式
- PHP函数set_magic_quotes_runtime()的作用
- 买本须知 笔记本电池全面解析
- 2011年三季度国内搜索市场规模突破50亿
- memcached java客户端比较
- 手把手建立Simulink四分之一车辆模型/Building a quarter car model step by step!
- iPhone开发札记【2011.10.27】
- 法务管理项目结项了mark一下
- android button 上添加图片
- log4j与slf4j