博客园  :: 首页  :: 新随笔  :: 订阅 订阅  :: 管理
上一页 1 2 3 4 5 6 7 ··· 32 下一页

2020年9月21日

摘要: 海康摄像头抓图curl --insecure --anyauth -u admin:password -X GET http://admin:password@192.168.110.19/ISAPI/Streaming/channels/110/picture >d:/b.jpg 海康RTSP流r 阅读全文

posted @ 2020-09-21 13:40 PHP-张工 阅读(627) 评论(0) 推荐(0) 编辑

2020年8月27日

摘要: 使用Navicat工具调试mysql数据库很方便,因为老的http连接mysql的代码仅支持 mysql_connect,但新的PHP已经不支持此函数了。在网上找的新方法,使用 mysqli_connect 替代。 1. 将 ntunnel_mysql.php 放网站可访问目录2. 使用浏览器测试访 阅读全文

posted @ 2020-08-27 10:46 PHP-张工 阅读(4258) 评论(0) 推荐(0) 编辑

2020年8月22日

摘要: <?php // 文件数据库 class ZFileDB { // 选择表 public static function table($_table, $_db = 'db01') { $db = new ZFileDB($_table, $_db); return $db; } private $ 阅读全文

posted @ 2020-08-22 10:37 PHP-张工 阅读(552) 评论(0) 推荐(0) 编辑

2020年6月27日

摘要: 效果如下: PHP端代码: /** * 日历 * * @param string month */ public static function day_report($params = []) { $month = $params['month']; if (empty($month)) { $m 阅读全文

posted @ 2020-06-27 11:47 PHP-张工 阅读(1339) 评论(0) 推荐(0) 编辑

2020年6月15日

摘要: <?php // 地球赤道半径 define('EARTH_RADIUS', 6378137); define('PI', pi()); ///# GPS工具类 zjfree@2017-03-29 class GpsTool { private static function get_rad($d) 阅读全文

posted @ 2020-06-15 09:21 PHP-张工 阅读(426) 评论(0) 推荐(0) 编辑

2020年6月12日

摘要: 使用PHP做一个超简单的文件下载页。 会自动检测除本目录下的除PHP文件外的所有文件,提供下载,TXT文本文件直接打开查看。 效果如下: 代码如下: <?php // 用户列表 $user_list = ['admin' => 'admin']; $user = $_SERVER['PHP_AUTH 阅读全文

posted @ 2020-06-12 13:32 PHP-张工 阅读(720) 评论(0) 推荐(0) 编辑

2020年4月3日

摘要: 翻译来自:https://www.florio.dev/20200328-letter-to-myself/ 翻译工具:https://www.deepl.com/translator 亲爱的自己: 你刚刚毕业,你准备好了在IT领域开始你的职业生涯。我不能破坏任何事情,但我向你保证,这将是一段有趣的 阅读全文

posted @ 2020-04-03 10:45 PHP-张工 阅读(289) 评论(0) 推荐(1) 编辑

2020年3月4日

摘要: 模拟window经典扫雷的JS实现版本。 http://zjf.me/page/mine.html 阅读全文

posted @ 2020-03-04 14:54 PHP-张工 阅读(1995) 评论(0) 推荐(0) 编辑

2020年2月14日

摘要: 项目中经常会用到将JS日期格式化输出为 标准格式(2020-11-01 22:33:44)的问题。写个精简版的,代码如下: function formatDate(d){ d = d || new Date(); let f = (v) => ('0' + v).substr(-2); return 阅读全文

posted @ 2020-02-14 13:18 PHP-张工 阅读(1374) 评论(0) 推荐(0) 编辑

2020年1月16日

摘要: ThreeJS 开启阴影正确做法: 1. 渲染器启用阴影 renderer.shadowMap.enabled = true;2. 灯光产生阴影 light.castShadow = true;3. 物体遮挡阴影 obj.castShadow = true;4. 地面显示阴影 obj.receive 阅读全文

posted @ 2020-01-16 09:56 PHP-张工 阅读(1866) 评论(0) 推荐(1) 编辑

上一页 1 2 3 4 5 6 7 ··· 32 下一页