新手来了 我正在从 PHP 5.6 升级到 7.6
在我的登录页面上,无法登录,出现以下错误:
已弃用:函数 get_magic_quotes_gpc() 在第 49 行的 /home/domain/library/config.php 中已弃用
这是 config.php 文件的代码:
<?php
ini_set('display_errors', 'On');
//ob_start("ob_gzhandler");
error_reporting(E_ALL);
// start the session
session_start();
$sid = session_id();
// database connection config
$servername = 'xxx';
$username = 'xxx';
$password = 'xxx';
$dbName = 'xxx';
require_once 'database.php';
require_once 'common.php';
// get the shop configuration ( name, addres, etc ), all page need it
$getSiteConfig = getSiteConfig();
// setting up the web root and server root for
// this shopping …Run Code Online (Sandbox Code Playgroud)