<?php /** * 图片类 * @author <420012223@qq.cn> */ class Image { public $uploadImagePath = './tmp';//上传图片地址 public $cropImagePath = './tmp';//切图图片地址 public $fileExt;//允许的文件格式 public $fileSize;//字节,默认2M public function __construct() { $this->fileEx
1. memcached依赖于libevent,需要先安装libevent. tar zxvf libevent-2.0.21-stable.tar.gz cd libevent-2.0.21-stable ./configure --prefix=/usr/local/libevent make make install 2 安装memcached服务端 # wget http://www.memcached.org/files/memcached-1.4.20.tar.gz# tar zxv