上一页 1 2 3 4 5 6 7 8 ··· 15 下一页
摘要: 百度搜索链接中的keyword参数,编码并非都是utf8,还有不少都是gb2312的。 这里写个php的方法,简单处理下,亲测几乎95%以上的都会转码正常。 //$keyword 为指定的keyword参数 public function deal_keyword($keyword) { parse 阅读全文
posted @ 2022-04-24 15:14 知风阁 阅读(365) 评论(1) 推荐(0) 编辑
摘要: <?php error_reporting(0);//抑制所有错误 /** * 小米运动刷步 * Daen QQ1330166565 * 2021年12月23日22:28:30 */ echo shuabu($_GET['user'],$_GET['pass'],$_GET['count']); f 阅读全文
posted @ 2022-04-12 09:41 知风阁 阅读(2466) 评论(0) 推荐(0) 编辑
摘要: //忽大忽小闪烁的动画 @keyframes scaleDraw { 0%{ transform: scale(1); } 25%{ transform: scale(1.2); } 50%{ transform: scale(1); } 75%{ transform: scale(1.2); } 阅读全文
posted @ 2022-03-19 09:37 知风阁 阅读(1704) 评论(0) 推荐(0) 编辑
摘要: $http_type = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') || (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROT 阅读全文
posted @ 2022-03-14 17:01 知风阁 阅读(222) 评论(1) 推荐(0) 编辑
摘要: // 官方API接口 $api = get_headers('http://mp.weixinbridge.com/mp/wapredirect?url='.input('url')); // 判断是否被拦截,主要是下标为6的节点返回的是weixin110就代表被封了 if (trim(empty( 阅读全文
posted @ 2022-03-12 09:02 知风阁 阅读(899) 评论(0) 推荐(0) 编辑
摘要: <?php $t_url=$_GET['url']; if(!empty($t_url)) { preg_match('/(http|https):\/\//',$t_url,$matches); if($matches){ $url=$t_url; $title='页面跳转中,请稍候...'; } 阅读全文
posted @ 2022-03-09 18:00 知风阁 阅读(1239) 评论(2) 推荐(0) 编辑
摘要: 1 #!/usr/bin/env python 2 # encoding=utf-8 3 import requests 4 import re 5 import codecs 6 from bs4 import BeautifulSoup 7 from openpyxl import Workbo 阅读全文
posted @ 2021-12-21 14:39 知风阁 阅读(113) 评论(0) 推荐(0) 编辑
摘要: # 方法1和2取一种即可<?php header("Access-Control-Allow-Origin: *");//允许所有地址跨域请求 //使用方法1(url接收抖音复制链接后的大段文字,自动提取链接)推荐 $url = $_POST['url']; preg_match_all('/htt 阅读全文
posted @ 2021-12-02 13:55 知风阁 阅读(637) 评论(2) 推荐(0) 编辑
摘要: #不想引各种乱七八糟的插件,就想要个弹框。这份代码是你最好的选择!!<!DOCTYPE html> <html> <head> <title>测试自定义弹框</title> </head> <style type="text/css"> .my-toast{ background-color: rg 阅读全文
posted @ 2021-11-24 16:52 知风阁 阅读(137) 评论(0) 推荐(0) 编辑
摘要: php有着5种运行模式,常见的有4种: cgi 协议模式 cgi模式 通用网关接口(Common Gateway Interface),它允许web服务器通过特定的协议与应用程序通信, 调用原理大概为: 用户请求->Web服务器接收请求->fork子进程 调用程序/执行程序->程序返回内容/程序调用 阅读全文
posted @ 2021-11-12 16:31 知风阁 阅读(79) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 15 下一页