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 ...