I`m trying here to work with memcache obj, but I have a little problem.
I do this:
$memcache = new Memcache;
$memcache->connect('localhost', 11211) or die ("Could not connect");
$value = "123"; // for example
$memcache->set('mykey', $value, false, 10) or die ("Failed to save data at the server");
$get_result = $memcache->get('mykey');
var_dump($get_result);
This code work perfectly when I executed the script from command line, but it`s not working when I tried to execute the script from web browser.
The browser gives me that error: "Error 324 (net::ERR_EMPTY_RESPONSE): The server closed the connection without sending any data."
Please help,
Best Regards
m starting to think that apache cant access memcache or something like this , because from command line works great. - viktormemcachedbut are talking aboutmemcachethese are two different extensions. - Marcel Gwerder