摘要:
1.在登陆也存Session::set('codes', mt_rand(1000, 9999)); 2.在post提交数加上codes值一起提交,<input type="hidden" name="codes" value="{:session('codes')}">; 3.提交到方法的哪里写, 阅读全文
摘要:
先安装redis到windows上 下载redis 根据自己系统下载对应版本下载redis https://github.com/microsoftarchive/redis/releases 安装redis比较简单,直接解压到C盘,重命名为redis,打开cmd 切换到redis目录下输入redi 阅读全文
摘要:
php public function index() { $post=Request::instance()->request(); $post['set']=isset($post['set'])?$post['set']:'10'; $post['name']=isset($post['nam 阅读全文
摘要:
加密方法(字符串 ,证书地址,证书密码)sha256是加密的算法 ()()()()()公钥加密私钥解密 function sign($data,$pfxpath,$pfxpwd) { $certs = array(); openssl_pkcs12_read(file_get_contents($p 阅读全文
摘要:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>JSONP 实例</title> <script src="http://cdn.static.runoob.com/libs/jquery/1.8.3/jquery.js"></ 阅读全文
摘要:
//证书加密需要传的参数 字符串 证书地址 证书密码! function sign($data,$pfxpath,$pfxpwd) { $certs = array(); openssl_pkcs12_read(file_get_contents($pfxpath), $certs, $pfxpwd 阅读全文
摘要:
控制器 <?phpnamespace app\index\controller; use think\Db; class Index{ public function userlist() { $list=Db::name('users')->paginate(10,false, [ 'type' 阅读全文
摘要:
// 如果有HTTP_X_WAP_PROFILE则一定是移动设备
if (isset ($_SERVER['HTTP_X_WAP_PROFILE']))
{
return true;
} 阅读全文
摘要:
sql 文件导入数据时,不能从高版本的数据到低版本的数据库。 阅读全文
摘要:
配站点域名比如 http://www.qoke.com D:\phpStudy\WWW\qoke 配资vhosts.conf 在phpstudy 打开配置文件里面 在里面加个 <VirtualHost *:80> DocumentRoot "D:\phpStudy\WWW\qoke" ServerN 阅读全文