上一页 1 ··· 5 6 7 8 9 10 11 12 13 14 下一页
摘要: * DateInterval output: 2018-08-01 21:30:002018-09-01 21:30:002018-07-18 21:30:00 2018-07-182018-07-172018-07-162018-07-15 * DateTimeZone * DatePeriod 阅读全文
posted @ 2018-07-18 21:50 zhanghui_ming 阅读(343) 评论(0) 推荐(0)
摘要: 不要相信外部源 $_GET $_POST $_REQUEST $_COOKIE $argv php://stdin php://input file_get_contents() 远程数据库 远程api 来自客户端的数据 htmlentities 1 <?php 2 $input = '<p><sc 阅读全文
posted @ 2018-07-17 22:17 zhanghui_ming 阅读(265) 评论(0) 推荐(0)
摘要: * 用数组 // test /* var a= []; for (var i = 0; i < 12; i++) { a.push(Math.round(Math.random()*100)); } console.log(a); */ var a = [3, 12, 17, 16, 73, 32, 阅读全文
posted @ 2018-07-17 10:22 zhanghui_ming 阅读(143) 评论(0) 推荐(0)
摘要: Windows10家庭版的用户,因为系统中没有组策略编辑器,需要修改注册表来实现。 注册表路径:HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System\CredSSP\Parameters 打开注册表,快捷输入 “regedit” 阅读全文
posted @ 2018-07-16 15:15 zhanghui_ming 阅读(723) 评论(0) 推荐(0)
摘要: javascript LinkedList: // Array like 1 // test 2 var list = new LinkedList(); 3 4 for (var i = 1; i < 10; i++) { 5 list.push(i); 6 } 7 for (i = 0; i < 阅读全文
posted @ 2018-07-16 13:03 zhanghui_ming 阅读(273) 评论(0) 推荐(0)
摘要: export: import: 阅读全文
posted @ 2018-07-16 10:42 zhanghui_ming 阅读(1986) 评论(0) 推荐(0)
摘要: jQuery 选择元素 a.text-success, a.text-danger, a.text-primary, a.text-info css selector regexp css选择器 正则表达式 Selectors This section is non-normative, as it 阅读全文
posted @ 2018-07-16 10:35 zhanghui_ming 阅读(397) 评论(0) 推荐(0)
摘要: * 从Packagist上搜索需要的包 https://packagist.org/ * 通过composer下载依赖包 * 使用composer自动加载器, 编写scan.php * input csv: ../data/urls.csv output: * 在Linux终端输出带颜色的文字的方法 阅读全文
posted @ 2018-07-15 22:21 zhanghui_ming 阅读(1218) 评论(0) 推荐(0)
摘要: 取第5列,去掉开头结尾的引号,匹配以http://, https://, ftp://开头的行 * awk * php input: ../data/t_video.csv output: ../data/url.csv SplFileObject http://php.net/manual/en/ 阅读全文
posted @ 2018-07-15 21:33 zhanghui_ming 阅读(298) 评论(0) 推荐(0)
摘要: 字节码缓存能存储预先编译好的php代码 * 如果是自己编译PHP 编译好后 php.ini /Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20170718 警告: 如果使用 Xdebug, php.ini文件必须 阅读全文
posted @ 2018-07-15 17:46 zhanghui_ming 阅读(145) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 12 13 14 下一页