From cd90d0aa3efdc39836c7ff1c726531d79a6c8c48 Mon Sep 17 00:00:00 2001 From: qiufangzhang <904208360@qq.com> Date: Tue, 16 Aug 2016 09:26:24 +0800 Subject: [PATCH] =?UTF-8?q?zys=E9=AB=98=E6=80=A7=E8=83=BD=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=E6=A1=86=E6=9E=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit zys高性能服务框架 --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9d1b328..23fe8a9 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ ###composer 安装 { "require": { - "qieangel2013/zys": "0.1.3" + "qieangel2013/zys": "0.1.4" } } ###分布式服务器通讯服务 @@ -33,9 +33,10 @@ 使用如下 //注意:type为sql、file,要是需要别的功能,自己定义 if($_FILES){ + //数据同步 $sql = array('type'=>'sql','data'=>'show tables'); var_dump(distributed::getInstance()->query($sql)); - //文件同步 + //文件同步(不用安装rsync+notify就可以实现文件同步,并且是触发式的占用很小的资源,调用sendfile零复制) $dir_pre=MYPATH.'/public/uploads/'; if(!is_dir($dir_pre.date('Ymd'))){ mkdir($dir_pre.date('Ymd'),0777,true);