摘要: root@kali:~# ifconfig eth0 up //启用网卡 root@kali:~# ifconfig -a //查看IP root@kali:~# dhclient eth0 // 分配IP https://www.fujieace.com/kali-linux/networking 阅读全文
posted @ 2020-09-21 15:48 Docter 阅读(1053) 评论(0) 推荐(0) 编辑
摘要: php5.3新增闭包函数用法use用法(引入变量地址且随内存中值变化而变化,跳过解析顺序直接获取函数最终值) $obj = (object) "Hello, everyone"; $callback = function () use ($obj) { print "This is a closur 阅读全文
posted @ 2017-01-05 11:27 Docter 阅读(146) 评论(0) 推荐(0) 编辑
摘要: $data=$this->user->get(); //is obj $data=(string)$data; //is string $data=$data->toArray(); //is array $data=$data->toJson(); //is string(json) //数据强制 阅读全文
posted @ 2016-12-11 19:15 Docter 阅读(1018) 评论(0) 推荐(0) 编辑
摘要: 1.定义工厂函数$factory->define(App\Test(model类名)::class, function (Faker\Generator $faker) { return [ 'name' => $faker->name, 'email' => $faker->email, 'pas 阅读全文
posted @ 2016-12-10 21:32 Docter 阅读(134) 评论(0) 推荐(0) 编辑
摘要: zoom:1.1; //将原有元素整体放大1.1倍 color:red !important; //css渲染等级最高 AUTOCOMPLETE="off" //输入框取消自动填充 autocomplete="new-password" //应对浏览器自动填充 阅读全文
posted @ 2016-12-09 17:11 Docter 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 1.array() //创建数组 2.array_change_key_case($arr,CASE_UPPER); //将键名全部大写,不加参数全变小写--没啥用 3.array_chunk($arr,2,true); //数组拆分,true保留原键名,false反之,默认false 4.arra 阅读全文
posted @ 2016-10-22 11:36 Docter 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 创建句柄 imagecreate($width, $height) //新建图像 imagecreatefromjpeg($path) //打开已有的图像 imagecreatefromgif($path) imagecreatefrompng($path) imagecreatefromjpeg( 阅读全文
posted @ 2016-10-21 11:47 Docter 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 1.headers_list() //返回头部信息 2.header("Content-type: text/html; charset=utf-8") //修改编码 3.header("Content-type: imge/png"); 4.hearders_sent() //判断是否发送HTTP 阅读全文
posted @ 2016-10-20 16:51 Docter 阅读(239) 评论(0) 推荐(0) 编辑
摘要: 1.addslashes($str); //转义时str中的所有特殊字符 stripslashes($str) //还原 2.bin2hex($str); //将2进制转成16进制 3. echo chr(99); //将ascll 码转成对应字母 4.chunk_split($str,6,'<br 阅读全文
posted @ 2016-10-20 15:55 Docter 阅读(169) 评论(0) 推荐(0) 编辑
摘要: include './phpqrcode/phpqrcode.php'; //引入QR库 QRcode::png("leo", 'qrcode.png', 'L', 10); //生成二维码 pang(value,path,容错级别,size) echo '<img src="qrcode.png" 阅读全文
posted @ 2016-10-20 14:20 Docter 阅读(204) 评论(0) 推荐(0) 编辑