我刚刚安装了新版本的 XAMPP,以前运行良好的网站现在不再运行,我想这是 PHP 不兼容,有人可以帮助我吗?tnks 在 adv..
Fatal error: Uncaught Error: Call to undefined function get_magic_quotes_gpc() in D:\xampp\htdocs\index.php:207 Stack trace: #0 {main} thrown in D:\xampp\htdocs\index.php on line 207
Run Code Online (Sandbox Code Playgroud)
\\ The path to the "application" folder
if (is_dir($application_folder))
{
define('APPPATH', $application_folder.'/');
}
else
{
if ( ! is_dir(BASEPATH.$application_folder.'/'))
{
exit("Your application folder path does not appear to be set correctly. Please open the following file and correct this: ".SELF);
}
define('APPPATH', BASEPATH.$application_folder.'/');
}
if(get_magic_quotes_gpc())
{
function stripslashes_gpc(&$value)
{
$value = stripslashes($value);
}
array_walk_recursive($_GET, 'stripslashes_gpc');
array_walk_recursive($_POST, 'stripslashes_gpc');
array_walk_recursive($_COOKIE, 'stripslashes_gpc');
array_walk_recursive($_REQUEST, 'stripslashes_gpc');
}
Run Code Online (Sandbox Code Playgroud)
感谢@WiatroBosy 的帮助。
我想我解决了问题,因为消息现在已经更改并将错误转移到另一个文件..我像这样解决了第一个问题..(我不知道我是否做对了)
if( function_exists("get_magic_quotes_gpc") && get_magic_quotes_gpc())
Run Code Online (Sandbox Code Playgroud)
现在新的错误是:
Fatal error: Cannot declare class CI_Log, because the name is already in use in D:\xampp\htdocs\system\libraries\Log.php on line 27 (line 27) class CI_Log {
Run Code Online (Sandbox Code Playgroud)
小智 17
自 PHP 7.4.0 起,此函数已被弃用。强烈建议不要依赖此功能。
| 归档时间: |
|
| 查看次数: |
61965 次 |
| 最近记录: |