mysql ereg_PHP 5.3 中不建议使用的(部分)函数列表

The following is a list of deprecated INI directives. Use of any of these INI directives will cause an E_DEPRECATEDerror to be thrown at startup. ■define_syslog_variables

■register_globals 【默认应该是off,为了安全性起见】

■register_long_arrays 【用短的$_GET等,而不是$HTTP_GET_VARS】

■safe_mode

■magic_quotes_gpc 【默认应该是Off,为了避免移植性的问题,另外数据库的安全性问题,应该交给应用层来做】

■magic_quotes_runtime

■magic_quotes_sybase

■Comments starting with '#' are now deprecated in .INI files.【那就使用;来注释吧 】 Deprecated functions:

■call_user_method() (use call_user_func() instead)

■call_user_method_array() (use call_user_func_array() instead)

■define_syslog_variables()

■dl()

■ereg() (use preg_match() instead)

■ereg_replace() (use preg_replace() instead)

■eregi() (use preg_match() with the 'i' modifier instead)

■eregi_replace() (use preg_replace() with the 'i' modifier instead)

■set_magic_quotes_runtime() and its alias, magic_quotes_runtime()

■session_register() (use the $_SESSION superglobal instead)

■session_unregister() (use the $_SESSION superglobal instead)

■session_is_registered() (use the $_SESSION superglobal instead)

■set_socket_blocking() (use stream_set_blocking() instead)

■split() (use preg_split() instead)

■spliti() (use preg_split() with the 'i' modifier instead)

■sql_regcase()

■mysql_db_query() (use mysql_select_db() and mysql_query() instead)

■mysql_escape_string() (use mysql_real_escape_string() instead)

■Passing locale category names as strings is now deprecated. Use the LC_* family of constants instead.

■The is_dst parameter to mktime(). Use the new timezone handling functions instead. Deprecated features:

■Assigning the return value of new by reference is now deprecated.

■Call-time pass-by-reference is now deprecated.

■The use of {} to access string offsets is deprecated. Use [] instead.

ereg开头的函数,已经不建议使用了。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值