After Memcached is successfully installed in Windows, the Failedreadinglinefromstream error occurs. after Memcached is successfully installed in Windows, the Failedreadinglinefromstream error occurs. phpchina. comspace. php? Uid: after Memcached is successfully installed in Windows, the Failed reading line from stream error occurs.
After successfully installing Memcached in Windows, the error "Failed reading line from stream" occurs.
I install a post on the network step (http://home.phpchina.com/space.php? Uid = 100028 & do = blog & id = 183123). after the service is installed and started, perform the following test:
<? Php
$ Mem = new Memcache;
$ Mem-> connect ("127.0.0.1", 11211 );
$ Mem-> set ('key', 'This is a test! ', 0, 60 );
$ Val = $ mem-> get ('key ');
Echo $ val;
?>
Prompt
Notice: Memcache: set () [memcache. set]: Server 127.0.0.1 (tcp 11211) failed with: Failed reading line from stream (0)
But I have no problem when connecting to connect. as long as other methods of calling the Memcache object prompt this Failed reading line from stream (0) error, ask what the problem is and how to solve it? Thank you.
------ Solution --------------------
It seems that memcached is not started. can you see the memcached process in the task manager?
------ Solution --------------------
Memcached has not been installed. can this link be used for you?
Http://xok.la/2009/10/memcached_peizhi.html
------ Solution --------------------
Memcached
------ Solution --------------------
I came in to learn.