Home > Article > Backend Development > Solution to the slow opening of phpmyadmin_PHP tutorial
The final reason for the slow loading of the phpmyadmin4 series is that the official website of phpmyadmin often cannot be opened recently, and the phpmyadmin page will automatically check the program version update on the official website, so when you enter the phpmyadmin management page and click on the database, phpmyadmin keeps trying to connect The official website thus delays the entire opening process very slowly.
The final solution is to prevent phpmyadmin from checking for updates. Find the version_check.php file in the phpmyadmin directory and modify it as follows:
# China area is set like this.
return gmdate('Y-m-d H:i:s', $timestamp + 28800);
#Principle: Localized time formatting requires gettext support. If your environment does not enable this function, garbled characters will be returned, affecting #phpmyadmin ajax processing. This test was verified on phpmyadmin 4.0.2 php 5.5.0 environment Passed.
# Step 2: ./version_check.php file.
$save = true;
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); This check for upgrade takes 30 seconds.
# Log out now and log in again to see if it has opened instantly?
# Let’s try it.
http://www.bkjia.com/PHPjc/756994.html
www.bkjia.com
http: //www.bkjia.com/PHPjc/756994.html