方法,在/www/server/phpmyadmin/你的phpmyadmin文件夹名字/搜索www.phpmyadmin.net/home_page/version.json
然后注释掉相关代码
以phpMyAdmin 4.4为例
url在
/www/server/phpmyadmin/你的phpmyadmin文件夹名字/libraries/VersionInformation.php

<?php
/*
            $file = 'https://www.phpmyadmin.net/home_page/version.json';
            if (function_exists('curl_init')) {
                $curl_handle = curl_init($file);
                if ($curl_handle === false) {
                    return null;
                }
                $curl_handle = PMA_Util::configureCurl($curl_handle);
                curl_setopt(
                    $curl_handle,
                    CURLOPT_HEADER,
                    false
                );
                curl_setopt(
                    $curl_handle,
                    CURLOPT_RETURNTRANSFER,
                    true
                );
                curl_setopt(
                    $curl_handle,
                    CURLOPT_TIMEOUT,
                    $connection_timeout
                );
                if (! defined('TESTSUITE')) {
                    session_write_close();
                }
                $response = @curl_exec($curl_handle);
            } else if (ini_get('allow_url_fopen')) {
                $context = array(
                    'http' => array(
                        'request_fulluri' => true,
                        'timeout' => $connection_timeout,
                    )
                );
                $context = PMA_Util::handleContext($context);
                if (! defined('TESTSUITE')) {
                    session_write_close();
                }
                $response = @file_get_contents(
                    $file,
                    false,
                    stream_context_create($context)
                );
            }
            */
Last modification:July 25, 2021
如果觉得我的文章对你有用,请随意赞赏