<span style="font-size: 12pt; font-family: "Times New Roman";">I just want to inquire about the memcached for
win32. I download >Memcached for Win32<br>
from <a href="http://jehiah.cz/projects/memcached-win32/" target="_blank">http://jehiah.cz/projects/memcached-win32/</a>
and php_memcached.dll from <a href="http://pecl4win.php.net/list.php" target="_blank">http://pecl4win.php.net/list.php</a><br>
<br>
Now I place php_memcached.dll in my php folder that is in C:\php\extension. And
also enter php_memcached.dll in php.ini.<br>
<br>
One important thing I am using PHP 4.4<br>
<br>
Well I am trying to test this code<br>
<br>
<span style="color: red;"><?php<br>
$memcache = new Memcache;<br>
$memcache->connect('localhost', 11211) or die ("Could not
connect");<br>
<br>
$version = $memcache->getVersion();<br>
echo "Server's version: ".$version."<br/>\n";<br>
<br>
$tmp_object = new stdClass;<br>
$tmp_object->str_attr = 'test';</span> <span style="color: red;"><br>
$tmp_object->int_attr = 123;<br>
<br>
$memcache->set('key', $tmp_object, false, 10) or die ("Failed to save
data at the server"); <br>
echo "Store data in the cache (data will expire in 10
seconds)<br/>\n";<br>
<br>
$get_result = $memcache->get('key');<br>
echo "Data from the cache:<br/>\n";</span> <span style="color: red;"><br>
<br>
var_dump($get_result);<br>
<br>
?></span><br>
<br>
While run this code in browser system gives me following error<br>
<br>
<b>Fatal error:</b> Cannot instantiate non-existent class: memcache in <b>c:\inetpub\wwwroot\aaa\config.php</b>
on line <b>3</b><br>
<br>
<br>
<br>
I don't know from where Memcache class exists. I mean where the definition of
this class lies. And how to solve this problem. <br>
<br>
<br>
Please help me in this problem.<br>
<br>
<br>
I am very thankful to you all.<br style="">
<br style="">
</span><br clear="all"><br>-- <br>Junaid Ali<br>IT Executive<br>CyberVision International