摘要: 项目依赖: bitcoin-php bitcoin的php实现库,用于创建助记词和生成私钥 (此库需要运行在64位的php7.0+上) ethereum-util 以太坊常用函数php实现库 composer require bitwasp/bitcoin composer require web3 阅读全文
posted @ 2019-10-21 16:32 YGCool 阅读(4788) 评论(15) 推荐(0) 编辑
摘要: 【一】匹配 @用户名 首先分析下微博中从哪里开始到哪里结束才是一个完整的用户名,按照常规的表现形式,一般是以@开头,以:结尾,中间为用户的名称。 匹配表达式就可写为: @[^::]+ 这是简单的写法,但是有些是在微博之后再@的,还有就是连续@的情况,还有些是以逗号等结束的,因此完善一下 修改为: @[^,,::\s@]+ 但是这些匹配都是从形式上进行了一个大概的归类,但是为了更为严谨,... 阅读全文
posted @ 2018-04-04 15:17 YGCool 阅读(2515) 评论(0) 推荐(0) 编辑
摘要: 1 $r) { 32 $rand_money = number_format($money_total*$r/$rand_sum, 2); 33 34 if($rand_money = number_format($money_total, 2)) { 35 $rand_money_arr[$key] = 0.01; ... 阅读全文
posted @ 2018-03-28 16:53 YGCool 阅读(225) 评论(0) 推荐(0) 编辑
摘要: 直接上代码: 阅读全文
posted @ 2018-03-27 10:36 YGCool 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 直接上实例代码 giuhub:https://github.com/PHPGangsta/GoogleAuthenticator 阅读全文
posted @ 2018-03-08 14:38 YGCool 阅读(1563) 评论(0) 推荐(0) 编辑
摘要: <?php /** * 获取微信的图片(防盗链) */ header('Content-type: image/jpeg'); if ($_GET["url"]) { echo file_get_contents($_GET["url"]); } 阅读全文
posted @ 2017-06-27 17:24 YGCool 阅读(489) 评论(0) 推荐(0) 编辑
摘要: 是因为更新过系统,安装并更新了系统自带的apache 执行这个命令即可 #ln -sf /www/wdlinux/init.d/httpd /etc/rc.d/init.d/httpd#reboot 阅读全文
posted @ 2017-05-05 18:11 YGCool 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 转自:http://www.cnblogs.com/whlives/p/5795458.html 阅读全文
posted @ 2017-04-12 09:14 YGCool 阅读(2941) 评论(0) 推荐(0) 编辑
摘要: 转自: http://www.cnblogs.com/whlives/p/6522544.html 阅读全文
posted @ 2017-04-12 09:11 YGCool 阅读(1675) 评论(0) 推荐(0) 编辑
摘要: vCard 规范容许公开交换个人数据交换 (Personal Data Interchange PDI) 信息,在传统纸质商业名片可找到这些信息。规范定义电子名片(或叫vCard)的格式。 vCard 规范可作为各种应用或系统之间的交换格式。定义的格式与传送的方法无关。传送交换可能是文件系统,点对点 阅读全文
posted @ 2017-04-01 18:12 YGCool 阅读(5022) 评论(0) 推荐(0) 编辑