Phpmyadmin4 + slow access solution-PHP source code

Source: Internet
Author: User
Phpmyadmin4 + slow access.




1. [Code][PHP] code
Step 1: # file name. /libraries/Util. class. php file. # Search for return strftime ($ date, $ timestamp); # replace it with the following code: if (extension_loaded ('gettext') return strftime ($ date, $ timestamp ); # set this in China. date_default_timezone_set ('utc'); return gmdate ('Y-m-d H: I: S', $ timestamp + 28800); # principle: gettext is required to format the localization time, if this function is not enabled in your environment, garbled characters will be returned, affecting the processing of # phpmyadmin ajax. this test is passed in the phpmyadmin 4.0.2 php 5.5.0 environment. # Step 2 :. /version_check.php file. $ save = t Rue; $ 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) ;}# delete or comment out the above code. the reason is that the official website has been suspended. this check takes 30 seconds. # After Exiting, log on to the system again to see if it has been enabled in seconds? # Try it.

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.