上一页 1 ··· 3 4 5 6 7 8 9 10 11 下一页
摘要: 使用环境为php7.3 function createZip($openFile,$zipObj,$sourceAbso,$newRelat = '') { while(($file = readdir($openFile)) != false) { if($file=="." || $file== 阅读全文
posted @ 2021-08-18 11:44 赵瑛 阅读(409) 评论(0) 推荐(0)
摘要: 安装firewall后(LINUX7系统一般情况下默认已安装),防火墙默认配置是只打开SSH端口的,也就是22端口,如果SSH的端口已更改成别的端口了,请切记一定在启动firewall前先修改对应服务策略中SSH的端口为你的SSH端口,文件路径:/usr/lib/firewalld/services 阅读全文
posted @ 2021-08-12 10:18 赵瑛 阅读(1250) 评论(0) 推荐(0)
摘要: 合并数组的方法 array_merge 如:array_merge($data1,$data2); 数组去重 //1.单数组去重复 array_unique($arrTest) //2.多数组去重复 array_keys(array_flip($arr1)+array_flip($arr2)) 阅读全文
posted @ 2021-08-12 08:57 赵瑛 阅读(226) 评论(0) 推荐(0)
摘要: 先进入mysql1、mysql -u root -p2、输入密码3、use 要导入的数据库名(没有就新建一个,使用create database test;命令新建,再use test;,再set names utf8;设置一下编码)4、source /home/test.sql; (选择要导入的数 阅读全文
posted @ 2021-08-10 15:18 赵瑛 阅读(381) 评论(0) 推荐(0)
摘要: 查看已开放的端口 firewall-cmd --list-ports 开放端口(开放后需要要重启防火墙才生效) firewall-cmd --zone=public --add-port=3338/tcp --permanent 关闭端口(关闭后需要要重启防火墙才生效) firewall-cmd - 阅读全文
posted @ 2021-08-10 14:58 赵瑛 阅读(690) 评论(0) 推荐(0)
摘要: <video id=“vid”> <source src="./video.mp4"></video> //尽量这样写 别直接再video中写src 那样会出现啊兼容性问题 <div class="time1">00:00:00</div> //视频播放时间 <div class="time1">8 阅读全文
posted @ 2021-08-10 11:34 赵瑛 阅读(332) 评论(0) 推荐(0)
摘要: :: 定时清理客户端上传导入包文件@echo offtitle 清理客户端上传导入包文件:: 导入包文件目录set log_dir=“F:\http\uploadzip\web\html\upload_bak”:: 保留天数set bak_dat=15:: 删除导入包文件forfiles /p %l 阅读全文
posted @ 2021-08-10 11:33 赵瑛 阅读(187) 评论(0) 推荐(0)
摘要: SELECT * FROM banner ORDER BY CASE when sort<>0 then sort else 99999 end asc; SELECT * FROM banner ORDER BY CASE when sort<>0 then sort else 99999 end 阅读全文
posted @ 2021-08-10 11:31 赵瑛 阅读(162) 评论(0) 推荐(0)
摘要: /* * 参数说明: $tag_id:所要获取的元素Tag Id $url:所要获取页面的Url $tag:所要获取的标签 $data */ function getWebTag($tag_id, $url = false, $tag = 'div', $data = false) { if ($u 阅读全文
posted @ 2021-08-10 11:30 赵瑛 阅读(368) 评论(0) 推荐(0)
摘要: 1 <?php 2 $url = 'http://www.baidu.com/index.php?m=content&c=index&a=lists&catid=6&area=0&author=0&h=0®ion=0&s=1&page=1'; 3 $arr = parse_url($url); 4 阅读全文
posted @ 2021-08-10 11:29 赵瑛 阅读(247) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 下一页

版权所有 © 2025 沅来是澧

如果有程序开发、网站建设等需求的请联系我,QQ:47419233