1.Fatal error: Class 'Memcache' not found in F:PHPhtdocsedscwLibInit.php on line 5;
Line 5: $memcache = new Memcache;
The memcache extension has also been installed in 2.php.ini, as follows:
extension=php_memcache.dll
[Memcache]
memcache.allow_failover = 1
memcache.max_failover_attempts=20
memcache.chunk_size =8192
memcache.default_port = 11211 ;
3. Check from the task manager that memcached is running;
4. Printing phpinfo() does not show any information about memcache.
What is the reason for this error?
Restart the web server.
For example, restart apache, restart nginx, restart php-fpm.
1. Type the command line to see if Memcache is really available
2. Check the code
After installation, restart php and check if there is memcache extension in phpinfo()
The corresponding version is wrong, right? http://windows.php.net/downlo...