您现在的位置是:首页 > 前端 > WEB基础 WEB基础
php使用谷歌验证 (Google Authenticator) 的双重身份验证
2020-08-20【WEB基础】2366人已围观
简介**流程** 1. 引入 `GoogleAuthenticator` 类 2. 生成**图片二维码**或者**安全密匙SecretKey** 3. 下载 谷歌身份验证器 (Google Authenticator) 4. 扫码或者输入key值 5. 在需要验证的PHP方法中调用谷歌验证 > 这是一个程序实现的PHP调用方法,把这个clone到你本地 `https://github.com/PHPGangsta/GoogleAuthenticator` **PHP**
随机图文
PHP中判断字符串是否含有中文
## 判断全是中文 > 方法一 ``` $str = '吾爱编程'; if (preg_match_all("/^([\x81-\xfe][\x40-\xfe])+$/", $str, $match)) { echo '全部是中文'; } else { echo '不全是中文'; } ``` > 方法二 ``` $str="'吾爱it编程"; if(!eregi("[^\x80-\xff]","$str")){ echo "全是中文";PHP日历
PHP日历小案例dedecms Allowed memory size of /include/helpers/string.helper.php
dedecms Allowed memory size of /include/helpers/string.helper.phpBootstrap3 navbar导航条居中显示
 > 代码 ``` .navbar-nav {float: none;text-align:center;} ul.nav.navbar-nav li {float:none;display: inline-block;margin: 0em;} ```
文章评论
昵称:
邮箱:
内容: