07 2017 档案

摘要:第一步 浏览器查找该域名的 IP 地址 第二步 浏览器根据解析得到的IP地址向 web 服务器发送一个 HTTP 请求 第三步 服务器收到请求并进行处理 第四步 服务器返回一个响应 第五步 浏览器对该响应进行解码,渲染显示。 第六步 页面显示完成后,浏览器发送异步请求。 阅读全文
posted @ 2017-07-28 21:27 郁冬 阅读(325) 评论(0) 推荐(0) 编辑
摘要:/** * GET请求 * @param $url * @return bool|mixed */ function http_get($url) { $oCurl = curl_init (); if (stripos ( $url, "https://" ) !== FALSE) { curl_setopt ( $oCurl, CURLOPT_SSL_... 阅读全文
posted @ 2017-07-26 16:17 郁冬 阅读(556) 评论(0) 推荐(0) 编辑
摘要://加密 function encrypt($data) { $key = md5("safregr"); $str = base64_encode($data); $res = base64_encode($str.$key); return $res; } //解密 function decrypt($data) { $key =... 阅读全文
posted @ 2017-07-25 17:14 郁冬 阅读(3911) 评论(0) 推荐(0) 编辑
摘要:想必你已经受够了单调的alert弹窗吧? 为了更好的用户体验性,现在介绍一款漂亮的弹窗口插件——sweetAlert,现在就来介绍它的使用 1、首先在官网下载它的CSS和JavaScript文件:http://mishengqiang.com/sweetalert/ 2、在页面的头部初始化插件 3、 阅读全文
posted @ 2017-07-20 23:44 郁冬 阅读(22749) 评论(1) 推荐(0) 编辑
摘要:1、fetchSql用于直接返回SQL而不是执行查询,适用于任何的CURD操作方法。 例如:$result = Db::table('think_user')->fetchSql(true)->find(1);输出result结果为: SELECT * FROM think_user where i 阅读全文
posted @ 2017-07-20 16:47 郁冬 阅读(242) 评论(0) 推荐(0) 编辑
摘要:sudo apt-get install php5-curl sudo service apache2 restart 阅读全文
posted @ 2017-07-17 23:39 郁冬 阅读(950) 评论(0) 推荐(0) 编辑
摘要:certbot地址 apache服务器(ubuntu环境): 1、获取软件包: 2、自动安装与部署证书: 它会自动安装插件,然后你需要输入邮箱来用于证书的找回。同时还会要求你选择是否同时开启Http和https和是否开启强制https。 nginx服务器(centos7): 1、安装certbot工 阅读全文
posted @ 2017-07-15 22:36 郁冬 阅读(581) 评论(0) 推荐(0) 编辑
摘要:sudo apt-get install python-software-properties sudo apt-get updatesudo apt-get install vimsudo apt-get install apache2sudo apt-get install -y php5 // 阅读全文
posted @ 2017-07-15 18:54 郁冬 阅读(1399) 评论(0) 推荐(0) 编辑
摘要:使用问题 failed to update pac file,操作过程中出现异常,结果无效,有关异常的详细信息,请查看innerexception。这是从GFWlist更新本地pac出现的问题,同样的系统有的机器会出现有的不会,具体原因应该是跟系统的某些环境有关,或者是缺少相应的组件。pac.txt 阅读全文
posted @ 2017-07-10 09:27 郁冬 阅读(7) 评论(0) 推荐(0) 编辑
摘要:$a = array(0 => Array(id => 66,class_name => math),1 => Array(id => 67,class_name => linux )); $b = array(0 => Array(class_count=> 8),1 => Array(class_count => 2)); $arr = array(); foreach($a as $k=>... 阅读全文
posted @ 2017-07-03 18:05 郁冬 阅读(15174) 评论(0) 推荐(0) 编辑
摘要:vagrant无法访问的提示:Please open VirtualBox and clear out your inaccessible virtual machines or find a way to fix them.看到这句话,于是打开virtualbox界面,virtualbox也提示该 阅读全文
posted @ 2017-07-01 13:00 郁冬 阅读(732) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示