Method of installing PHP memcache module under Windows, phpmemcache_php Tutorial

Source: Internet
Author: User

The method of installing PHP memcache module under Windows, Phpmemcache


Required knowledge Necessary

Familiar with basic programming environment construction.

Operating Environment

Windows 7 (64-bit);
php-5.3;
memcached-1.2.6

Download Address

Environment download

What is a PHP memcache module

The Memcache module provides a convenient process-oriented and object-oriented interface for memcached, Memcached is a resident process cache product that is created to reduce the load of data from a database by Dynamic Web applications.

Download memcache website php memcache download Address

We need to pay attention to the version number, according to personal circumstances, I was php_memcache-3.0.8-5.3-ts-vc9-x86.zip

Use the Phpinfo () function to view information about the current PHP version

Install extensions

Unzip the downloaded compressed package and copy the Php_memcache.dll module to the PHP ext folder.

Modify the php.ini file

Introduce the following code

Test

Restart the Web server.

Enter the following code in the memcache.php file:

<?php$memcache = new Memcache; $memcache->connect (' 127.0.0.1 ', 11211); $memcache->set (' key ', ' Hello memcache! '); $out = $memcache->get (' key '); Echo $out;? >

To test in a browser, it is important to note that the Memcache service must be in the boot state. For the installation of the Memcache service in the Windows platform, you can refer to an article I wrote earlier.

Memcache for Windows

If the above articles or links are helpful to you, don't forget to click the "OK" button at the end of the article or click the "Like a" button in the bottom right corner of the page. You can also click on the right side of the page "share" hover button oh, let more people read this article.

Due to my limited level, the article in terms of presentation and code if there is something wrong, welcome criticism. Leave your footprints, welcome to comment Oh.

http://www.bkjia.com/PHPjc/980228.html www.bkjia.com true http://www.bkjia.com/PHPjc/980228.html techarticle The method of installing PHP's Memcache module under Windows, Phpmemcache requires knowledge to be familiar with the basic programming environment setup. Operating environment Windows 7 (64-bit); php-5.3; memcached-1.2.6 Download Address ...

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