Fatal error: Uncaught Error: Call to undefined function sql_regcase

断了今生、忘了曾经 提交于 2021-01-29 03:52:18

问题


Can somebody help me with these

Fatal error: Uncaught Error: Call to undefined function sql_regcase() in /home/vol13_5/byethost24.com/b24_19881615/htdocs/core.php:157 Stack trace: #0 /home/vol13_5/byethost24.com/b24_19881615/htdocs/core/pages/signup.php(6): text_filter('', 1) #1 {main} thrown in /home/vol13_5/byethost24.com/b24_19881615/htdocs/core.php on line 157

line 157 is:

$text = preg_replace(sql_regcase("/(drop table|show tables|#|--|\\\\)/"),"",$text);

回答1:


Might be you are using php7 or higher in which sql-regcase is removed

Reference of sql-regcase




回答2:


This function was DEPRECATED in PHP 5.3.0, and REMOVED in PHP 7.0.0 - are you using PHP7 (use php --version to know) If not using PHP7 but an older release, did you enable the mysql extension in your php.ini file?

Note that use of mysql_* function is deprecated as well, so use pdo or mysqli



来源:https://stackoverflow.com/questions/43042997/fatal-error-uncaught-error-call-to-undefined-function-sql-regcase

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!