随笔分类 -  PHP

摘要:/* * 参数说明: $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 赵瑛 阅读(364) 评论(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 赵瑛 阅读(242) 评论(0) 推荐(0)
摘要:1 $serve = 'mysql:host=数据库地址;dbname=数据库名;charset=utf8'; 2 $username = 数据库帐号; 3 $password = 数据库密码; 4 $PDO = new PDO($serve,$username,$password); 5 $res 阅读全文
posted @ 2021-08-10 09:25 赵瑛 阅读(269) 评论(0) 推荐(0)
摘要:1 header("Content-type:text/html;charset=utf-8"); 2 $aaa = "http://upfile.cuepa.cn/data/paper/2020/09/23/20200923163055_898895_small.jpg"; 3 $str = 's 阅读全文
posted @ 2021-08-10 09:24 赵瑛 阅读(148) 评论(0) 推荐(0)
摘要:1 <html class="no-js"> 2 <head> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 5 <title>操作成功</title> 6 <meta name="v 阅读全文
posted @ 2021-08-06 14:51 赵瑛 阅读(77) 评论(0) 推荐(0)
摘要:1、先在顶部引入use think\paginator\driver\Page; 2、使用下例代码 $pageNumber = input('page')? input('page'):'0';//客户端传过来的分页 if($pageNumber > 0){ $pageNumber_one = $p 阅读全文
posted @ 2021-08-04 08:46 赵瑛 阅读(951) 评论(0) 推荐(0)
摘要:mcrypt 扩展已经过时了大约10年,并且用起来很复杂。因此它被废弃并且被 OpenSSL 所取代。 从PHP 7.2起它将被从核心代码中移除并且移到PECL中。 PHP手册在7.1迁移页面给出了替代方案,就是用OpenSSL取代MCrypt。 <?php namespace expand; /* 阅读全文
posted @ 2021-07-08 14:28 赵瑛 阅读(230) 评论(0) 推荐(0)
摘要:下载地址: https://www.mupdf.com/downloads/index.html 使用方法: 打开cmd,切换到mupdf文件路径下,再在命令行中敲入命令 mutool.exe draw -o file%d.png file.pdf 输出透明的png mutool.exe conve 阅读全文
posted @ 2020-03-08 13:28 赵瑛 阅读(1745) 评论(0) 推荐(1)
摘要://在列表头部插入一个值one,当列表不存在时自动创建一个列表,key1为列表名 $redis->lpush("key1", "one"); //在列表尾部插入一个值two,当列表不存在时自动创建一个列表,key1为列表名 $redis->rPush("key1","two"); //将一个插入已存 阅读全文
posted @ 2019-11-20 09:50 赵瑛 阅读(223) 评论(0) 推荐(0)
摘要:远程采集一个https页面上的邮箱,死活采集不到,后来发现用上面的这个方法是可以采集到的,需要注意的是,其中curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); 阅读全文
posted @ 2019-11-08 15:30 赵瑛 阅读(548) 评论(0) 推荐(0)

版权所有 © 2025 沅来是澧

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