上一页 1 ··· 5 6 7 8 9 10 下一页
摘要: vim /etc/profile //进入里面 找到 PATH 这一行 添加下面最后一行(70为PHP版本号,修改为自己的即可) PATH=$PATH:/www/server/php/70/bin export PATH export PATH=/usr/local/git/bin:$PATH PA 阅读全文
posted @ 2020-04-06 00:30 祈愿仙帝 阅读(1560) 评论(0) 推荐(0) 编辑
摘要: <button type="button" class="fb-btn" id="google"> <img src="google.jpg" class="images" alt="google"> </button> <button type="button" id="facebook" cla 阅读全文
posted @ 2020-03-27 10:49 祈愿仙帝 阅读(1441) 评论(0) 推荐(0) 编辑
摘要: 很多站长在部署了https后,默认访问的网站仍然是http,需要手动去访问https才行。 今天小白在这个告诉大家一个简单的代码,在nginx站点配置中加一段简单的判断跳转就可以实现,不需要使用伪静态跳转。 在nginx的站点配置中加上一段 if ($server_port !~ 443){ rew 阅读全文
posted @ 2020-03-27 10:39 祈愿仙帝 阅读(620) 评论(0) 推荐(0) 编辑
摘要: <?php namespace app\index\controller; use think\Db; use think\Session; use think\Controller; //跨域处理 header('Access-Control-Allow-Origin:*'); header('A 阅读全文
posted @ 2020-03-09 11:51 祈愿仙帝 阅读(603) 评论(0) 推荐(0) 编辑
摘要: 改表法解决 进入MySQL bin目录 执行./mysql -uroot -p mysql>use mysql; mysql>select 'host' from user where user='root'; #查看mysql库中的user表的host值(即可进行连接访问的主机/IP名称) 执行u 阅读全文
posted @ 2020-03-09 11:49 祈愿仙帝 阅读(102) 评论(0) 推荐(0) 编辑
摘要: $dbms='mysql'; //数据库类型$host='45.77.120.52'; //数据库主机名$dbName='www_tumblevd_co'; //使用的数据库$user='www_tumblevd_co'; //数据库连接用户名$pass='root'; //对应的密码$dsn="$ 阅读全文
posted @ 2020-02-28 18:07 祈愿仙帝 阅读(174) 评论(0) 推荐(0) 编辑
摘要: <?php$str = "要加入的内容"; $file = fopen("./log.log", "a+"); //创建文件或打开文件fwrite($file, $str); //写入 fclose($file); //关闭文件或者使用下面显示更清晰$data = [1,2,3]; //加入logf 阅读全文
posted @ 2020-02-26 15:29 祈愿仙帝 阅读(242) 评论(0) 推荐(0) 编辑
摘要: <?php /** * php 获取时间(今天,昨天,三天内,本周,上周,本月,三年内,半年内,一年内,三年内) * * date:2018-10-12 16:23:01 */ $q = $_GET['q'] ? intval($_GET['q']) : 0; $text = ''; $now = 阅读全文
posted @ 2020-02-04 11:03 祈愿仙帝 阅读(200) 评论(0) 推荐(0) 编辑
摘要: //生成随机数,《可自行设置》(6个数字4个字母)(存在重复值)function Rand(){ if(PHP_VERSION < '4.2.0'){ echo "版本过低不支持"; } $randArr = array(); for($i = 0; $i < 4; $i++){ $randArr[ 阅读全文
posted @ 2019-12-20 14:28 祈愿仙帝 阅读(943) 评论(0) 推荐(0) 编辑
摘要: https://lnmp.org/auto.html 阅读全文
posted @ 2019-12-02 13:41 祈愿仙帝 阅读(147) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 下一页