成都公司:成都市成華區(qū)建設南路160號1層9號
重慶公司:重慶市江北區(qū)紅旗河溝華創(chuàng)商務大廈18樓
當前位置:工程項目OA系統(tǒng) > 泛普各地 > 江西OA系統(tǒng) > 南昌OA系統(tǒng) > 南昌網站建設公司
PHP5.3作廢函數(shù)的處理方法
作廢函數(shù)如下:
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() 以及它的別號函數(shù) magic_quotes_runtime()
[color=olive]session_register() (<span style="COLOR: rgb(255,0,0)">運用 $_SESSION 超悉數(shù)變量替代)
session_unregister() (<span style="COLOR: rgb(255,0,0)">運用 $_SESSION 超悉數(shù)變量替代)
session_is_registered() (<span style="COLOR: rgb(255,0,0)">運用 $_SESSION 超悉數(shù)變量替代)
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() 替代)
拋棄以字符串傳遞區(qū)域設置稱號. 運用 LC_* 系列常量替代.
mktime() 的 is_dst 參數(shù). 運用新的時區(qū)處置函數(shù)替代.
處置辦法: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 的第一個參數(shù)不是正則表達式,<span style="COLOR: rgb(255,0,0)">可以用 str_replace 直接來交換
split用<span style="COLOR: rgb(255,0,0)">explode交換或preg_split交換