上一页 1 ··· 5 6 7 8 9 10 11 12 13 下一页
摘要: 取第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 阅读(284) 评论(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 阅读(136) 评论(0) 推荐(0) 编辑
摘要: * 在array_map()函数中使用闭包 Array( [0] => 2 [1] => 3 [2] => 4) * 使用use关键字附加闭包的状态 Clay, get me some sweet tea! * 使用bindTo方法附加闭包的状态 阅读全文
posted @ 2018-07-15 17:25 zhanghui_ming 阅读(99) 评论(0) 推荐(0) 编辑
摘要: * 使用生成器处理csv文件 input: ../data/t_video.csv output: Generator: 阅读全文
posted @ 2018-07-15 13:49 zhanghui_ming 阅读(453) 评论(0) 推荐(0) 编辑
摘要: windows ~/.emacs mac ~/.emacs 阅读全文
posted @ 2018-07-15 11:28 zhanghui_ming 阅读(190) 评论(0) 推荐(0) 编辑
摘要: The right way /dev/hell Code Response.php 接口 demo: modern-php/├── data│ └── stream.txt└── interface ├── CommandOutputDocument.php ├── DocumentStore.ph 阅读全文
posted @ 2018-07-15 10:07 zhanghui_ming 阅读(112) 评论(0) 推荐(0) 编辑
摘要: * 通过composer下载 // composer.json * 去掉讨厌的注释 https://doc.phpspider.org/demo-start.html ./vendor/owner888/phpspider/core/phpspider.php 删掉这段恶心的代码 * 导入数据库文件 阅读全文
posted @ 2018-07-14 23:13 zhanghui_ming 阅读(329) 评论(1) 推荐(0) 编辑
摘要: laravel 连接数据库出现错误 1. 确认./config/database.php 2. 检查.env文件 默认的配置导致的错误 DB_DATABASE=homestead DB_USERNAME=homestead DB_PASSWORD=secret 3. 重启服务 laravel art 阅读全文
posted @ 2018-07-14 10:43 zhanghui_ming 阅读(317) 评论(0) 推荐(0) 编辑
摘要: <?php class DB { private static $dh = null; private function __construct() { self::$dh = mysqli_connect("localhost","root",""); if (!self::$dh) { die('Could not connect: ' . mysql_err... 阅读全文
posted @ 2018-07-13 11:05 zhanghui_ming 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 1. 确认服务器 开放8088端口 https://www.apachefriends.org/download.html 下载XAMPP for Windows,安装 2. 修改apache主配置文件 e:/opt/xampp/apache/conf/httpd.conf 默认有Listen 80 阅读全文
posted @ 2018-07-13 10:41 zhanghui_ming 阅读(1911) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 下一页