phpmyadmin4+ open access very slow workaround _php Tutorial

Source: Internet
Author: User
Many friends find that using phpmyadmin4.0 or above will find open more slowly than before, this if the use of dedecms friends will encounter the same problem, the solution dedecms is because the remote file loading and phpmyadmin4 the same operation, so we just find the code to delete.

Many people use the PHPMYADMIN4 later version found that the speed seems a lot slower, summed up, to provide solutions.
1. Modify Localization Time

Principle: Localization time formatting needs GetText support, if your environment does not turn on this function, will return garbled characters, affect the processing of #phpmyadmin Ajax. This test is validated on the phpMyAdmin 4.0.2 PHP 5.5.0 environment.
Modification:./libraries/util.class.php file

The code is as follows Copy Code
# find
Return strftime ($date, $timestamp);

# Replace with the following code:
if (extension_loaded (' GetText '))
Return strftime ($date, $timestamp);

# China Zone this setting.
Date_default_timezone_set (' UTC ');
Return Gmdate (' y-m-d h:i:s ', $timestamp + 28800);

2, Shielding online upgrade

Principle: phpMyAdmin Official website was GFW, automatically check the update time wasted in the wall wait, close can
Modify:./version_check.php file, remove or comment out the following code

The code is as follows Copy 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);
}

Now quit, and then log in to visit, to see if it has been opened in seconds? Everybody try it ~

http://www.bkjia.com/PHPjc/633184.html www.bkjia.com true http://www.bkjia.com/PHPjc/633184.html techarticle many friends find that using phpmyadmin4.0 or above will find open more slowly than before, this if the use of dedecms friends will encounter the same problem, solve dedecms is due to load ...

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.