PHP memcache
connect ("192.168.0.200", 11211); // save data $ mem-> set ('key1 ', 'This is first value', 0, 60); $ val = $ mem-> get ('key1'); echo "Get key1 value :". $ Val. ""; // replace Data $ mem-> Replace ('key1', 'this is replace value', 0,
InstallationIn order to make the article more complete, we choose to install MySQL from the source code, we need to note that the earlier version has a memory leak, so it is recommended to install the latest stable version, as of this time, the
A few years ago, Handlersocket turned out to let people in front of a bright, I also wrote an article introduced its usage sketch, today, for a variety of reasons, handlersocket not really popular, but fortunately the MySQL official inspired by it,
Installation
To make the article more complete, we choose to install MySQL from the source code, it is important to note that the early version of the memory leak, so the recommended installation of the latest stable version, as of this article,
PHP calls Memcache to store the session in the following way, remember to need to/usr/local/php/etc/php.ini Session.auto_start = 0 is set to 0, Otherwise, calling the Memcache storage session is not effective. The reason is: when PHP executes the
[Program Analysis]Initialize a memcache object:
$ Mem = new memcache;
Connect to our memcache server. The first parameter is the Server IP address or host name, and the second parameter is the open port of memcache:
$ Mem-> connect ("192.168.0.200",
Use of innodb_memcache
Innodb_memcache is compatible with the memcache protocol and can be used by mysql to provide memcache with the replication function!
GET[root@www share]# echo 'get aa'|nc localhost 11222VALUE aa 0 12HELLO, HELLOEND
Get
This article mainly introduces the Memcached plug-in the InnoDB engine in MySQL and provides an example. if you need it, you can refer to the past few years. the emergence of HandlerSocket makes people shine, at that time, I wrote an article about
by Francis_hao Jul 5,2017Getopts is a built-in command for the shell.OverviewGetopts optstringname [args]Optind,optarg,opterrDescribeGetopts is used by the shell program to analyze positional parameters,optstring contains the option characters that
Memcache is a danga.com project, the first to serve the LiveJournal, many people around the world use this cache project to build their own heavy load of the site to share the pressure of the database. It can handle any number of connections and use
Summary of errors that php may easily make when writing secure code. 1. do not translate htmlentities into a basic knowledge: all untrusted input (especially the data submitted by the user from the form) must be converted before output. Echo $ _ GET
The essence of arrays: manages and operates a group of variables and processes them in batches. The following describes the array classification, array classification, and usage instructions.
Php Tutorial: Array declaration, traversal, array global
In php, we can directly use php to process URLs for pseudo-static operations. However, this pseudo-static mode is not a standard and can be said to look like a commodity, but it is quite comfortable, of course, if you want to implement real
PHP pseudo-static is mainly used to hide the passed parameter names. The PHP pseudo-static method introduced today has four methods in total to deepen understanding of PHP pseudo-static.
Pseudo static Method 1:
The code is as follows:
//
Does the action in php have any special meaning for parameters? See the code I learned php & nbsp; 5 in & nbsp; 5. for error message & nbsp; set to display: & nbsp; the following code is available: & lt; body & gt; & nbsp; & lt; center & gt; does
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.