We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e25468c commit cd90d0aCopy full SHA for cd90d0a
README.md
@@ -21,7 +21,7 @@
21
###composer 安装
22
{
23
"require": {
24
- "qieangel2013/zys": "0.1.3"
+ "qieangel2013/zys": "0.1.4"
25
}
26
27
###分布式服务器通讯服务
@@ -33,9 +33,10 @@
33
使用如下
34
//注意:type为sql、file,要是需要别的功能,自己定义
35
if($_FILES){
36
+ //数据同步
37
$sql = array('type'=>'sql','data'=>'show tables');
38
var_dump(distributed::getInstance()->query($sql));
- //文件同步
39
+ //文件同步(不用安装rsync+notify就可以实现文件同步,并且是触发式的占用很小的资源,调用sendfile零复制)
40
$dir_pre=MYPATH.'/public/uploads/';
41
if(!is_dir($dir_pre.date('Ymd'))){
42
mkdir($dir_pre.date('Ymd'),0777,true);
0 commit comments