在我試圖在服務器上設置的這些admincp文件中支持相同的錯誤。我如何解決它們?棄用:函數eregi()已棄用
推薦使用:功能eregi()被棄用在C:\ XAMPP \ htdocs中\ speedyautos \ admincp \ system_cls.php上線152(虛線示出152-155)
if (!eregi("install", $_SERVER['REQUEST_URI']) && !eregi("install", $_SERVER['PHP_SELF']))
{
exit("No " . TABLE_PREFIX . "db.php Present. Please run Install first");
}
棄用:功能eregi()被棄用在C:\ XAMPP \ htdocs中\ speedyautos \ admincp \ system_cls.php上線177(虛線示出177-184)
if (!eregi("install", $_SERVER['REQUEST_URI']) && !eregi("install", $_SERVER['PHP_SELF']) && !eregi("upgrade", $_SERVER['PHP_SELF']) && !eregi("admincp", $_SERVER['REQUEST_URI']) && !eregi("searchjs.php", $_SERVER['REQUEST_URI']) && !eregi("locationjs.php", $_SERVER['REQUEST_URI']))
{
register_shutdown_function("SysTime");
if (!verifysession() && ($SystemInfo->_systemstatus['User_Signup'] != "F" || $SystemInfo->_systemstatus['Seller_Signup'] != "F" || $SystemInfo->_systemstatus['Dealer_Signup'] != "F"))
{
eval("\$loginlink = \"" . $Template->gettemplate("register_link") . "\";");
}
}
推薦使用:功能eregi()是DEPR ecated在C:\ XAMPP \ htdocs中\ speedyautos \ admincp \ func.php在線路447預先(示線442-451)
if (!$GLOBALS['noshutdownfunc'])
{
register_shutdown_function("CleanSessionTbl");
}
} elseif (!eregi("install", $_SERVER['REQUEST_URI']) AND !eregi("install", $_SERVER['PHP_SELF']))
{
echo "Please delete the install.php file";
exit;
}
許多謝謝!
將它們轉換爲'preg' – kjy112 2011-03-08 19:33:22
Canonical Question:[將ereg表達式轉換爲preg](http://stackoverflow.com/questions/6270004/converting-ereg-expressions-to-preg) – hakre 2012-05-04 00:40:09