韩小韩博客

⎛⎝韩小韩博客⎠⎞ - 要变得更加完美。

统计
登录
用户名
密码
搜索到 73 篇与 闲杂乱码 的结果
2020-07-20

PHP判断URL的合法性字符串是否为 URL 链接

PHP判断URL的合法性字符串是否为 URL 链接
前言:有好多小伙伴在爬虫的时候,或者其他情况下无法精确判断一个字符串是不是一个标准URL链接地址从而很费脑,下面我么看一下怎么判断URL的合法性。以下代码均为PHP语言代码,但语言都是相通的。第一种:正则表达式<?php function or_url($url){ $preg = "/http[s]?:\/\/[\w.]+[\w\/]*[\w.]*\??[\w=&\+\%]*/is"; if(preg_match($preg,$url)){ echo '正确的 url 地址'; }else{ echo '不是合法的 url 地址'; } }第二种:使用内置函数 filter_var () 推荐<?php function or_url($url){ if (filter_var($url, FILTER_VALIDATE_URL) !== false) { echo 'url 地址正确'; }else{ echo 'url 地址...
韩小韩
2020-07-20

闲杂乱码

264 阅读
0 评论
2020年07月20日
264 阅读
0 评论
2020-06-23

百度收录判断API接口PHP源码

百度收录判断API接口PHP源码
百度收录判断API接口源码<?php /* Plugin Name:百度收录判断 Version:1.0 Description:判断网址是否被百度收录 */ $sl_url = (isset($_GET['url']))?$_GET['url']:$_POST['url']; if(empty($sl_url)) echo '查询网址不能为空'; $data = BD_curl('https://www.baidu.com/s?wd='.urlencode($sl_url)); if(!isset($data)) showjson(array('code'=>202702,'msg'=>'查询失败,请重试!')); if(strpos($data,'提交网址')){ showjson(array('code'=>202703,'url'=>$sl_url,'msg'=>'该网址未被收录!')); }else{ showjson(array('code'=>1,'url'=>$sl_url,'msg'=&g...
韩小韩
2020-06-23

闲杂乱码

278 阅读
0 评论
2020年06月23日
278 阅读
0 评论
2020-06-23

百度收录量API查询PHP源码

百度收录量API查询PHP源码
百度收录量API查询PHP源码<?php /* Plugin Name:百度收录量 Version:1.0 Description:根据域名返回百度收录量 */ $domain = (isset($_GET['domain']))?$_GET['domain']:$_POST['domain']; if(empty($domain)) echo '查询域名不能为空'; $count = baiduSL ($domain); if(!isset($count)) showjson(array('code'=>200502,'msg'=>'查询失败,请重试!')); if(!$count) $count = 0; $result=array( 'code'=>1, 'domain'=>$domain, 'data'=>$count ); print_r(json_encode($result)); unset($value,$url_arr,$domain,$row,$hostrow,$site,$resultu...
韩小韩
2020-06-23

闲杂乱码

256 阅读
0 评论
2020年06月23日
256 阅读
0 评论
2020-06-09

JavaScript屏蔽右键F12和Ctrl+U等绝大部分按键

JavaScript屏蔽右键F12和Ctrl+U等绝大部分按键
网站被别人抓包?被别人审查?被别人扒?代码直接插入网页,不会的话,百度一下。<script type='text/javascript'> //屏蔽右键菜单 document.oncontextmenu = function (event) { if (window.event) { event = window.event; } try { var the = event.srcElement; if (!((the.tagName == "INPUT" && the.type.toLowerCase() == "text") || the.tagName == "TEXTAREA")) { return false; } return true; } catch (e) { return false; } } //屏蔽粘贴 docu...
韩小韩
2020-06-09

闲杂乱码

462 阅读
2 评论
2020年06月09日
462 阅读
2 评论
2020-04-28

手机分辨率随机福利姬美图合集

手机分辨率随机福利姬美图合集
前言关于福利姬美图这个东西,那些个在淘宝上卖的图包,着实有点贵,对于喜欢这些个福利姬或者美图的兄弟姐妹们,发了电脑版本,再来一篇支持手机分辨率的随机福利姬美图合集。手机分辨率随机福利姬美图合集大概2984张,占内存3.78G博主已经集成API接口<?php $type= $_GET["type"]; $url = "https://api.vvhan.com/api/mobil.girl?type=".$type; header("Location: {$url}"); ?>接口调用示例HTTP输出 <img src="https://api.vvhan.com/api/mobil.girl" alt="手机分辨率随机福利姬美图合集"> HTTPS输出 <img src="https://api.vvhan.com/api/mobil.girl?type=https" alt="手机分辨率随机福利姬美图合集"&g...
韩小韩
2020-04-28

网站源码

1,152 阅读
0 评论
2020年04月28日
1,152 阅读
0 评论
2020-04-28

电脑分辨率随机福利姬美图合集

电脑分辨率随机福利姬美图合集
前言关于福利姬美图这个东西,那些个在淘宝上卖的图包,着实有点贵,对于喜欢这些个福利姬或者美图的兄弟姐妹们,博主特意搞了一批福利姬美图 - 电脑分辨率的。电脑分辨率福利姬美图大概2360张,占内存1.66G博主已经集成API接口<?php $type= $_GET["type"]; $url = "https://api.vvhan.com/api/girl?type=".$type; header("Location: {$url}"); ?>接口调用示例HTTP输出 <img src="https://api.vvhan.com/api/girl" alt="电脑分辨率随机福利姬美图合集"> HTTPS输出 <img src="https://api.vvhan.com/api/girl?type=https" alt="电脑分辨率随机福利姬美图合集">附一张(刷新随机变)
韩小韩
2020-04-28

网站源码

983 阅读
0 评论
2020年04月28日
983 阅读
0 评论
2020-04-21

采集百度风景图片保存到本地(demo)

采集百度风景图片保存到本地(demo)
前言据说你还在一张一张的保存百度图片?太难了吧。开始干第一步 - 打开 https://image.baidu.com/第二步 - 按F12进入开发者 - 点击Network选择XHR第三步 - 输入风景壁纸(想搜啥搜啥)回车,就会出现JSON数据 - 复制地址留备用第四步 上代码<?php set_time_limit(0); header("Content-Type:text/html;charset=UTF-8"); date_default_timezone_set("PRC"); // 自行抓包百度风景图片JSON数据 $arr = array("你的百度图片JSON数据地址"); for ($j = 0; $j <= count($arr); $j++) { $hansdata = file_get_contents($arr[$j]); $hansjson = json_decode($hansdata, true); for ($i = 0; $i <= coun...
韩小韩
2020-04-21

闲杂乱码

677 阅读
1 评论
2020年04月21日
677 阅读
1 评论

人生倒计时

今日已经过去小时
这周已经过去
本月已经过去
今年已经过去个月

最新回复

  1. 九凌少子
    2020-12-05

    {!{data:image/webp;base64,UklGRjwPAABXRUJQVlA4WAoAAAAQAAAADQEAKwEAQUxQSFoOAAAB8IZt23Kn1bYds2hxLaQuaLB6sbYDqjiVQA0I7SyS4FKnTepl4hbqLe7uMsMs7u7uFk8DDQnZf+znuMZ1niPXGOetjYgJkNB4NQC8KtbwGD1uDQrcoMrW4AEASBNr+Aztsgf/pHn24Esabg8mUB97sIZetgcn6RFrUOgmVbQGVQEgSazh87TNHnShmfbgaxpiDyZTT3uwjtrYgzP0kDUoAi5vDarTJbGGL9Ime9CNptqDb+k7ezCNYu3BRmplD85TXWtwK7iMNYikc2INm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QsLIv+hWg9LI8bUNdSSsvEmFDFobwPJmEm6CxeDXAJy+Qcm/vV1Xwk/jJGpZXOSLs394q5SEp+aFu3/7738fKGYPrtM99uAMPWoP1tKL9mA2dbAHCdTPHsTT1/Ygln60B+1oiz3oQxftwRN0wB7UpT32oCodtQd30Tl7UIGS7UFxumEPbiEUsAaSS2XsQRLdZQ8OUU17cIwetwcXKMYeLKfe9uATmmkPYuiEPehOZ+yBj87bg9foqj1oaxla0jF7UCYbwFB7IMOBIw9aBPHFVJS//f+3///eJVZQOCC8AAAAkBQAnQEqDgEsAT9xuNlltK8rpyAoApAuCWlu4XdhG0AJ7APfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99snIe9IAA/v+tHgAAAAAAAAAAAAA=}!}

  2. 九凌少子
    2020-12-05
  3. qas
    2020-12-03
  4. fancy
    2020-11-29
  5. https://instantketopills.org/
    2020-11-29