![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
wordpress
锄 禾
虚心若愚,求知若渴
展开
-
前端请求进行验证的php生成存入cookie的验证码
<?php getCode(4,80,30); // session_start(); function getCode($num,$w,$h) { $code = ""; for ($i = 0; $i < $num; $i++) { $code .= rand(0, 9); } //将生成的验证码写入cookie,备验...原创 2019-12-17 11:15:26 · 345 阅读 · 0 评论 -
关于wordpress获取用户真实IP,存于本地数据库——实现首次访问警告提示的功能
《需求摘要》 英:The yellow bar at the bottom of the page is the cookie warning . It just needs to be a bar with CTA in it for people to click accept. Once accepted this will be cached and not pop up again ....原创 2019-02-02 10:46:24 · 1437 阅读 · 1 评论