Win7 under Wamp extension memcache

Source: Internet
Author: User
Tags phpinfo

1. Server-Side Installation 1.1

Http://download.csdn.net/detail/feiyuhit/5873533#comment

1.2 Installation

Place the Memcached folder of the downloaded compressed folder in the D packing directory

Open Command window with cmd, go to d:/memcached directory, enter memcached-d install

To see if the installation was successful, enter Memcached–h, and a message stating that the installation was successful

memcached-d Start memcached Service

memcached-d Restart re-starting memcached service

Memcached-d Stop|shutdown shutting down a running memcached service

1.3 Easy to use
1 //Connection2 $mem=NewMemcache;3 $mem->connect ("192.168.0.34", 11211);//The IP of which the computer is tested for itself4 //Save Data5 $mem->set (' Key1 ', ' This is first value ', 0, 60);6 $val=$mem->get (' Key1 ');7 Echo"Get Key1 Value:".$val." <br/> ";8 //Close Connection9 $mem->close ();

2. Client 2.1 Phpinfo Find the following information

2.2 Download Php_memcache.dll related knowledge

VC6 is Legacy Visual Studio 6 compiler, which is compiled with this compiler.
VC9 is the Visual Studio compiler, which is compiled with Microsoft's vs Editor.
Thread safe is threaded, and thread security checks are performed to prevent new requirements from exhausting system resources as the CGI execution of new threads starts.
Non thread safe is non-threaded and does not thread (thread) security checks at execution time.

2.3 Downloads Php_memcache.dll

Website: http://windows.php.net/downloads/pecl/releases/memcache/3.0.8/

Of course, there are other ways to download other versions of PHP

2.4 Extensions

Download the compressed folder as above URL to extract the Php_memcache.dll file and place it in the bin\php\php5.3.10\ext\ directory of the Wamp installation directory

Open php.ini, plus extension: extension=php_memcache.dll

Phpinfo () to see if extended memcache information is present, it is the responsibility to indicate that the extension was successful.

Win7 under Wamp extension memcache

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.