在我试图在服务器上设置的这些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