At the command line I use PHP to execute the script does not error, but I output on the page on the error
PHP Code
Connect ("127.0.0.1", 11211), $re = $mem->set (' testkey1 ', ' This is first value ', 0, $); Var_export ($re); $val = $mem Get (' testkey1 '); echo "\ r \ n"; echo "Get Key1 Value:". $val. "\ r \ n";
The above is my code.
I can execute scripts with PHP index.php and get the correct results.
But I'm typing http://site/index.php in the browser to suggest "Class ' Memcache ' not found in"
My memcached are loaded, and I've restarted PHP and Nginx.
Why is there an error on the page?? Why is this??
------Solution--------------------
2 modes of execution are caused by different php.ini configuration files loaded.
Page view phpinfo and command line PHP--ini to see if it is different.
------Solution--------------------
Or php.ini, the configured extension uses a relative address, extension_dir this, and some other relative addresses also make mistakes.