Home >Backend Development >PHP Tutorial >PHP Memcache 连接有关问题

PHP Memcache 连接有关问题

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-13 10:44:48867browse

PHP Memcache 连接问题!
使用Memcache的时候出现下列问题,是为什么?
Memcache::connect() expects parameter 2 to be long, string given in 
谢谢了

------解决方案--------------------

探讨

楼上两位.....
Memcache::connect ( string $host [, int $port [, int $timeout ]] )
第二个参数填端口号,长整形(long),你填的是string类型了,所以报错,哪是太长的意思
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn