PHP Memcache 连接有关问题

WBOY
Release: 2016-06-13 13:18:20
Original
912 people have browsed it

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

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

探讨

楼上两位.....
Memcache::connect ( string $host [, int $port [, int $timeout ]] )
第二个参数填端口号,长整形(long),你填的是string类型了,所以报错,哪是太长的意思
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!