php微信域名拦截检测

php微信域名拦截检测

<?php /** * 微信域名拦截检测 * 2024年2月1日编写 * 作者:TANKING */ // 页面编码 header("Content-type:application/json"); // 获取Url $url = $_GET['url']; if($url) { // 调用官方接口 $checkUrl...

PHP 2024-02-24 PM 152次 0条
php 百度翻译代码

php 百度翻译代码

<?php /*************************************************************************** * Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved * ************************************************...

PHP 2023-05-04 PM 1296次 0条
php  MagicCrypt 加密解密 与 rust  MagicCrypt 通用

php MagicCrypt 加密解密 与 rust MagicCrypt 通用

PHP用到mcrypt模块来实作AES,因此需要激活mcrypt模块在线MagicCrypt加密解密 http://www.txttool.com/t/?id=NjA2<?phpnamespace org\magiclen\magiccrypt; class MagicCrypt { private $iv; private $key; private $bi...

PHP 2023-05-04 AM 1384次 0条
php 实现https Ssl证书到期监听

php 实现https Ssl证书到期监听

function index(){ $domains = [ 'sumubai.cc', ]; foreach($domains as $domain) { try{ $cert_info = get_cert_info($domain); $dn = $cert_info['...

PHP 2023-04-16 AM 871次 0条
php 连接到 MySQL 数据库创建表

php 连接到 MySQL 数据库创建表

<?php // 连接到 MySQL 数据库 shopid $host = "localhost"; $username = "shopid"; $password = "xxxxxxx"; $dbname = "shopid"; $conn = mysqli_connect($host,...

PHP 2023-04-11 PM 729次 0条
php常用的header头部定义

php常用的header头部定义

header() 函数向客户端发送原始的 HTTP 报头。常用的有以下几种<?php header('HTTP/1.1 200 OK'); // ok 正常访问 header('HTTP/1.1 404 Not Found'); //通知浏览器 页面不存在 header('HTTP/1.1 301 Moved Permanently'); //设置地址被永久的重定向 301 heade...

PHP 2023-04-05 PM 554次 0条
php 强悍的抓取函数 PHP 模拟一切 heard头信息

php 强悍的抓取函数 PHP 模拟一切 heard头信息

PHP在抓取远程数据中 可能有些目标网页是限制抓取的,我们可以这样子模拟请求头信息,最强悍的方法是 利用WSExplorer抓取软件 看自己电脑打开网页请求了哪些头信息 就都写到程序里模拟就可以了 基本破解90%的限制抓取网页function curl_head($url){ $ch = curl_init(); // 设置浏览器的特定header curl_setopt($ch, CUR...

PHP 2023-04-05 PM 509次 0条
PHP将url链接中的参数转为数组,或数组转为链接

PHP将url链接中的参数转为数组,或数组转为链接

业务需求:需要将配置表中的路径参数进行二次处理,但存储的方式是以字符串形式进行存储的,比如path字段:?aaa=111&bbb=222&ccc=333。还考虑了一种方法是对字符串进行截取,但需要进行好多步的判断,索性将链接转成数组的形式进行键值的修改,再讲数组转为字符串,以达到想要的效果!/* * url参数转化成数组 */ function convertUrlArray($quer...

PHP 2023-04-05 PM 515次 0条
php怎么把字符串转换成数组?

php怎么把字符串转换成数组?

1、首先新建一个PHP文档,并定义一个字符串,示例:$str = 'apple|banana|orange|carrot';2、以"|"为分隔符,将字符串打散为数组,示例:$arr = explode('|',$str);3、使用print_r,将字符串转换之后的数组打印出来,示例:print_r($arr);4、explode()函数还有第三个参数,可以限定数组元素的数量,示例:$arr ...

PHP 2023-04-05 PM 425次 0条
php使用curl模拟post请求

php使用curl模拟post请求

$url="http://localhost/header_server.php"; $body = array("mobile"=>"13899999999", "username"=>"Nick"); $header = array("Content-Type:mul...

PHP 2023-04-05 PM 767次 0条
PHP中CURL方法curl_setopt()函数的参数详解curl发起post或get请求

PHP中CURL方法curl_setopt()函数的参数详解curl发起post或get请求

PHP CURL curl_setopt 参数bool curl_setopt (int ch, string option, mixed value)curl_setopt()函数将为一个CURL会话设置选项。option参数是你想要的设置,value是这个选项给定的值。curl 发起POST或GET请求/** * @param string $url 请求地址 * @param ar...

PHP 2023-04-05 PM 455次 0条