PHP5.3作废函数的处理方法
作废函数如下:
call_user_method()(<span style="COLOR: rgb(255,0,0)">运用 call_user_func() 替代)
call_user_method_array() (<span style="COLOR: rgb(255,0,0)">运用 call_user_func_array() 替代)
define_syslog_variables()
dl()
ereg() (<span style="COLOR: rgb(255,0,0)">运用 preg_match() 替代)
ereg_replace() (<span style="COLOR: rgb(255,0,0)">运用 preg_replace() 替代)
eregi() (<span style="COLOR: rgb(255,0,0)">运用 preg_match() 共同 ‘i’ 批改符替代)
eregi_replace() (<span style="COLOR: rgb(255,0,0)">运用 preg_replace() 共同 ‘i’ 批改符替代)
set_magic_quotes_runtime() 以及它的别号函数 magic_quotes_runtime()
[color=olive]session_register() (<span style="COLOR: rgb(255,0,0)">运用 $_SESSION 超悉数变量替代)
session_unregister() (<span style="COLOR: rgb(255,0,0)">运用 $_SESSION 超悉数变量替代)
session_is_registered() (<span style="COLOR: rgb(255,0,0)">运用 $_SESSION 超悉数变量替代)
set_socket_blocking() (<span style="COLOR: rgb(255,0,0)">运用 stream_set_blocking() 替代)
split() (<span style="COLOR: rgb(255,0,0)">运用 preg_split() 替代)
spliti() (<span style="COLOR: rgb(255,0,0)">运用 preg_split() 共同 ‘i’ 批改符替代)
sql_regcase()
mysql_db_query() (<span style="COLOR: rgb(255,0,0)">运用 mysql_select_db() 和 mysql_query() 替代)
mysql_escape_string() (<span style="COLOR: rgb(255,0,0)">运用 mysql_real_escape_string() 替代)
抛弃以字符串传递区域设置称号. 运用 LC_* 系列常量替代.
mktime() 的 is_dst 参数. 运用新的时区处置函数替代.
处置办法:editplus编纂器中,正则交换
交换ereg(),eregi():用preg_match交换
ereg\("([^"]+)<span style="COLOR: rgb(255,0,0)">"交换为:preg_match("/\1/"
ereg\('([^"]+)'<span style="COLOR: rgb(255,0,0)">交换为:preg_match('/\1/'
eregi\("([^"]+)"<span style="COLOR: rgb(255,0,0)">交换为:preg_match("/\1/i"
eregi\('([^"]+)'<span style="COLOR: rgb(255,0,0)">交换为:preg_match('/\1/i'
交换ereg_replace(),eregi_replace():<span style="COLOR: rgb(255,0,0)">用preg_replace()交换
ereg_replace\("([^"]+)"<span style="COLOR: rgb(255,0,0)">交换为:preg_replace("/\1/"
ereg_replace\('([^"]+)'<span style="COLOR: rgb(255,0,0)">交换为:preg_replace('/\1/'
ereg_ireplace\("([^"]+)"<span style="COLOR: rgb(255,0,0)">交换为:preg_replace("/\1/i"
ereg_ireplace\('([^"]+)'<span style="COLOR: rgb(255,0,0)">交换为:preg_replace('/\1/i'
假如 ereg_replace 的第一个参数不是正则表达式,<span style="COLOR: rgb(255,0,0)">可以用 str_replace 直接来交换
split用<span style="COLOR: rgb(255,0,0)">explode交换或preg_split交换
- 1学生应当根据阅读对象的特点及自身的客观需要
- 2生活服务类网站为何流量大涨?
- 3网站建设中的用户体验
- 4要尽可能选择那些有代表性的最有说服力的论据
- 5网站优化的重点设计
- 6如何建立APP端整体形象
- 7义乌华睿软件ERP系统为了做到充分的集成和共享
- 8域名投资之“奇货可居”
- 9对过滤网的清洗,用户可以自己动手完成
- 10建议室内外温差最好不要超过6摄氏度
- 11不能因为有了好用的热水器就毫无节制的洗澡
- 12域名DNS的用途
- 13最重要是主材选购占办公室装修中费用一半以上
- 14怎样做好优秀的用户体验
- 15东莞网络营销公司揭秘曾经互联网草根牛人
- 16什么样的网站值得站长一直去坚守?
- 17新手站长换友链需要注意的
- 18SEOer的发展
- 19页面之间的关联性,会否影响搜索引擎抓取?
- 20使用纳客会员管理系统遇到的问题(问答四)
- 21怎样快速换到合适的友情链接
- 22早上泡脚,使得人们更好的排毒
- 23选择广告中的服务器租用需谨慎
- 24纳客会员管理软件特色功能介绍
- 25网站优化的基本方法
- 26SEOer要学会寻找优质外链
- 27网站优化需多长时间
- 28PHP设计模式 编程惯用法
- 29域名注册注意事项
- 30使用纳客连锁会员管理系统遇到的问题(二)