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

2021年2月23日

摘要: 使用PHP生产mjpeg格式图片。在HTML直接在img的src访问。<img src="./mjpeg2.php"> <?php // https://github.com/donatj/mjpeg-php date_default_timezone_set("PRC"); error_repor 阅读全文

posted @ 2021-02-23 17:41 PHP-张工 阅读(359) 评论(0) 推荐(0)

2021年2月22日

摘要: xampp官网:https://www.apachefriends.org/ 因为是国外网站下载很慢,可以从腾讯下载:https://pc.qq.com/detail/1/detail_3041.html Apache 的 D:\xampp\apache\conf\httpd.conf 配置修改 < 阅读全文

posted @ 2021-02-22 15:24 PHP-张工 阅读(86) 评论(0) 推荐(0)

2021年1月29日

摘要: 使用CURL模拟访问网页,保留返回的COOKIE <?php class dnspod { public static function api_call($api, $data) { $api = 'https://dnsapi.cn/' . $api; echo $api . PHP_EOL; 阅读全文

posted @ 2021-01-29 13:18 PHP-张工 阅读(219) 评论(0) 推荐(0)

2021年1月6日

摘要: 赛孚耐(SafeNet)加密狗 购买链接:https://item.jd.com/21653904499.html 需求: 加密狗作用:如果未插入加密狗,则程序无法运行。我们会给每个客户一个加密狗,希望通过加密狗编号自动对应客户。 加密狗制作流程: 1. 安装《超级加密狗工具包》,通过开发商向导安装 阅读全文

posted @ 2021-01-06 13:30 PHP-张工 阅读(2012) 评论(0) 推荐(0)

2020年12月25日

摘要: GITHUB 日历效果 使用PHP SVG实现效果 中文化、月份线条区分 实现代码: <?php date_default_timezone_set("PRC"); error_reporting(E_ALL & ~E_NOTICE); set_time_limit(30); header('Con 阅读全文

posted @ 2020-12-25 14:10 PHP-张工 阅读(377) 评论(0) 推荐(0)

2020年12月22日

摘要: 需求分析 打印店经常需要套打功能,如员工工牌等。固定图片上绘制动态文字内容。网页上有时也需要将动态文字嵌入到图片,方便图片分享。或者根据内容动态生产条码或二维码。相比前端创建图片,使用PHP后台实现,可以简化前台调用代码,更灵活方便。 条码生成 /img_text/barcode.php?v=123 阅读全文

posted @ 2020-12-22 11:39 PHP-张工 阅读(415) 评论(0) 推荐(0)

2020年12月4日

摘要: 在网页登录时,我们会经常用到password输入框,使用post提交到后台验证。密码明码提交很容易被人截获或记录。我们可以通过JS将密码简单加密,在后台再解密,防止传输过程中监听或泄漏。 网页端代码: <!DOCTYPE html> <html lang="zh-CN"> <head> <meta 阅读全文

posted @ 2020-12-04 15:23 PHP-张工 阅读(1092) 评论(0) 推荐(0)

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-张工 阅读(754) 评论(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-张工 阅读(5780) 评论(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-张工 阅读(568) 评论(0) 推荐(0)

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