Home > Database > PHPMyAdmin > body text

Reasons and solutions for slow access to phpmyadmin

王林
Release: 2019-12-28 16:53:02
forward
3246 people have browsed it

Reasons and solutions for slow access to phpmyadmin

Step one: Find the version_check.php file in the phpmyadmin directory and find the following code

$save = true; 
    $file = 'http://www.phpmyadmin.net/home_page/version.json'; 
    if (ini_get('allow_url_fopen')) { 
        $response = file_get_contents($file); 
    } else if (function_exists('curl_init')) { 
        $curl_handle = curl_init($file); 
        curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, 1); 
        $response = curl_exec($curl_handle); 
    }
Copy after login

Delete or comment out the above codes. Check that the upgrade takes 30 seconds. Time, there is no need to check whether there is a new version online.

The second step is to open the ./libraries/Util.class.php file and look for the following code:

return strftime($date, $timestamp);
Copy after login

Replace with the following code:

if(extension_loaded('gettext')) 
  return strftime($date, $timestamp);
Copy after login

China area can be replaced with The following code:

if(extension_loaded('gettext')){         
date_default_timezone_set('UTC'); 
return gmdate('Y-m-d H:i:s', $timestamp + 28800);}
Copy after login

Principle: Localized time formatting requires gettext support. If this function is not enabled in your environment, garbled characters will be returned, affecting #phpmyadmin ajax processing.

Recommended related articles and tutorials: phpmyadmin tutorial

The above is the detailed content of Reasons and solutions for slow access to phpmyadmin. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:freebuf.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact [email protected]
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!