摘要:
<?php// PHP 二分查找function search($arr, $sea){ $low = 0; // 确定数组的开始的下标 $len = count($arr)-1; // 确定数组的最后一下标 数组的长度-1 //echo $len; exit; while( $low <= $le 阅读全文
摘要:
<?php// php 获取 文件名function getExt($url){ $arr = parse_url($url); // URL 字符串予以解析,并将结果返回数组中 //print_r($arr);exit; /* Array ( [scheme] => http [host] => 阅读全文
摘要:
根据要搜索的接收的数据 接收到后 对要搜索的进行拼接 列如以下: public function searchby(){ //接收到数据 $admin_name = trim(I("get.admin_name")); $email = trim(I("get.email")); $phone = 阅读全文
摘要:
1: 安装客户端2: 注册使用github3: 具体操作3-1: 右键打开:git bash here 执行 ssh-keygen -t rsa -C "youremail@example.com"3-2: 然后 进入 C:\Users\Dadadawen\.ssh 找到 id_rsa.pub 复制 阅读全文
摘要:
数据的查询 /** * 查询正在使用的数据 model 层 */ public function selectdata(){ return $this->find()->andWhere(['about_del' => 0 , 'about_status' => 1])->all(); /* //多 阅读全文
摘要:
修改数据 /** * 根据获取到的数据的id 去编辑对应的数据 controller层 */ //引入对应的model use app\models\About; //定义一个方法 经行修改 public function actionEdit(){ //判断是否是提交过来的数据 $request 阅读全文
摘要:
增加数据 /** * 添加数据 controller 层 */ //引入对应的model类 use app\models\About; //定义对应的方法固定的actionxxxx -- 增加数据 public function actionAdd(){ //判断是否是提交过来的数据 $reques 阅读全文
摘要:
1.安装 1.01:到官网下载 coreseek-3.2.14 1.01_1 原理 缓存服务器: 准备数据 来自数据库 配置连接 生成索引 开启服务 流程:用户-> web->sphinx->web(ids集合)->mysql->web->人 1.02:安装 1、下载后解压得到源程序目录 cores 阅读全文
摘要:
Apache 的ab测试 操作: windows + r cmd 进入命令行模式 找到 apache 下的 ab.exe; 然后 在bin 目录下 进行操作 ab -n1000 -c100 http://www.test.com/test.php 返回如下结果: Server Software: A 阅读全文