摘要:
1 setFileName($fileName); 25 } 26 27 //设置要导出的文件名 28 public function setFileName($fileName) 29 { 30 $this->fileName = $fileName; 31 } 32 33 //开始下载 34 public func... 阅读全文
摘要:
yum -y install memcached 安装好memcache服务器端 然后安装memcache扩展:http://www.cnblogs.com/yangxia-test/p/4195222.html 阅读全文
摘要:
http://blog.csdn.net/loyachen/article/details/50909854 自己试验了,可以走,唯一的就是libopus安装不上,但是不安装也没有影响 安装成功后检测是否成功安装:ffmpeg 进行转码: FFMPEG -i uploadfileideo/test. 阅读全文
摘要:
关闭Yii框架中自带的样式 在要关闭样式的那个控制器加: public $layout = false; 关闭csrf 阅读全文
摘要:
假设某服务器架构中有两台web服务器(IP为192.168.1.252和192.168.1.254),一台代码更新发布服务器(IP为192.168.1.251),需要同步的目录是/data/www/,结构图如下: 下面介绍一下安装步骤 在代码发布服务器(192.168.1.251)上安装inotif 阅读全文
摘要:
<?php $cookie_path = './'; //设置cookie保存路径 // 登录要提交的表单数据 $vars['username'] = '张三'; $vars['pwd'] = '123'; // $method_post = true; //登录提交的url地址(表单中的actio 阅读全文
摘要:
$arr1 = ['a','b','c','d','e','e','a','a']; $arr = array_count_values($arr1); echo '<pre>'; print_r($arr); result: Array ( [a] => 3 [b] => 1 [c] => 1 [ 阅读全文
摘要:
windows下安装reids windows下redis下载地址:https://github.com/MSOpenTech/redis/releases。 启动redis服务:在redis目录下启动DOS命令,然后redis-server.exe 这时候另启一个cmd窗口,原来的不要关闭,不然就 阅读全文
摘要:
<?php//引入命名空间use yii\helpers\Html;?><?php //表单:Html::beginForm(提交地址,提交方法,属性数组);?> <?=Html::beginForm('','post',['id'=>'form','class'=>'form','data'=>' 阅读全文
摘要:
当alert弹出框点击确定以后,再让页面重新加载一下 具体的代码如下: <script type="text/javascript"> alert("签到成功"); window.location.reload(); </script> 阅读全文