在命令行下我用PHP执行脚本不报错,但是我在网页上输出就报错
<!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --><?php error_reporting(E_ERROR | E_WARNING | E_PARSE); $mem = new Memcache; $mem->connect("127.0.0.1", 11211); $re = $mem->set('testkey1','this is first value', 0, 60); var_export($re); $val = $mem->get('testkey1'); echo "\r\n"; echo "Get key1 value: " .$val. "\r\n";