随笔分类 -  PHP

摘要:1、让水印文字铺满图片: 大致效果: 代码: 2、简单验证码效果: 代码: 阅读全文
posted @ 2019-08-04 20:43 宋建明 阅读(493) 评论(0) 推荐(0)
摘要:$_POST、$GLOBALS['HTTP_RAW_POST_DATA']、file_get_contents("php://input") 都有用来取post数据,用下来感觉大致是这样的: 1、当Coentent-Type是`application/x-www-data-urlencoded`或` 阅读全文
posted @ 2019-06-23 17:29 宋建明 阅读(1565) 评论(0) 推荐(1)
摘要:发送端 接收端 阅读全文
posted @ 2019-06-23 15:24 宋建明 阅读(5823) 评论(1) 推荐(0)
摘要:如果只需要所有层级名称 //获取所有子孙 阅读全文
posted @ 2019-06-16 13:31 宋建明 阅读(533) 评论(0) 推荐(0)
摘要:fwrite() 二进制安全 end条件[string写完/length-1]; fputs() fwrite()的别名; fread() 二进制安全,end条件[一个可用包/EOF/length-1/超时]; fgets() 读一行,end条件[换行符/EOF/length-1/超时],length默认1024; feof() 遇到[EOF/出错]才返回true; 阅读全文
posted @ 2019-06-16 12:36 宋建明 阅读(606) 评论(0) 推荐(0)
摘要:2 /* 3 POST /servlet/ICBCCMPAPIReqServlet?userID=jyi.y.1001&PackageID=201807311347539185&SendTime=20180731134755 HTTP/1.1 4 Host: 127.0.0.1:7070 5 Accept:* 6 Content-Type:application/x-www-form... 阅读全文
posted @ 2019-06-09 20:19 宋建明 阅读(882) 评论(0) 推荐(0)
摘要:"autoload": { "psr-4": {"": ["App/base", "App/src/controllers"]} }, 阅读全文
posted @ 2019-06-09 19:35 宋建明 阅读(367) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2019-06-09 19:10 宋建明 阅读(536) 评论(0) 推荐(0)
摘要:array_merge() 数组+ 阅读全文
posted @ 2019-06-09 18:46 宋建明 阅读(349) 评论(0) 推荐(0)