大家好,我已经编写了以下程序来保护应用程序。 但是执行后,出现以下错误 在这里查看 PHP 代码
输出:
Deprecated: Function sql_regcase() is deprecated in /home/admin/public_html/test/protect.php on line 6 Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user 'root'@'localhost' (using password: NO) in /home/admin/public_html/test/protect.php on line 9 Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: A link to the server could not be established in /home/admin/public_html/test/protect.php on line 9
以及请建议我更安全的方式!
提前致谢
最佳答案
关于 sql_regcase 函数:它在 PHP V5.3.0 中已被弃用,不应再使用。
注意:mysql_* 函数的使用也已弃用,因此请使用 pdo 或 mysqli
关于php - 如何解决 Function sql_regcase() is deprecated issue in php,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13191222/