河汉清且浅,牵牛敦而纯
摘要: file_get_contents()函数的相关参数,支持SSL错误和header $options = array( "ssl" => array( "verify_peer" => false, "verify_peer_name" => false, ), "http" => array( ' 阅读全文
posted @ 2023-06-12 21:38 伊索 阅读(40) 评论(0) 推荐(0)
摘要: wgethttps://www.gnu.org/software/wget/https://eternallybored.org/misc/wget/https://github.com/JulioGold/wget/tree/master/wgethttps://sourceforge.net/p 阅读全文
posted @ 2023-05-11 21:02 伊索 阅读(23) 评论(0) 推荐(0)
摘要: Chrome-Headless for PHP 项目地址 https://github.com/chrome-php/chrome <?php $url = "https://g.cn"; $bin = "D:\bin\ChromePortable\chrome.exe"; $bin = "chro 阅读全文
posted @ 2023-04-24 03:52 伊索 阅读(455) 评论(0) 推荐(0)
摘要: https://github.com/google/brotlihttps://github.com/andybalholm/brotlihttps://textplain.wordpress.com/2015/09/10/brotli/https://bayden.com/dl/brotli.ex 阅读全文
posted @ 2023-04-19 17:27 伊索 阅读(259) 评论(0) 推荐(0)
摘要: php上传文件简单示例 <?php $log = ''; $buf = ob_get_contents(); ob_end_clean(); $postmaxsize = trim(ini_get('post_max_size')); //preg_match_all('/\d+/', $postm 阅读全文
posted @ 2023-04-06 14:39 伊索 阅读(29) 评论(0) 推荐(0)
摘要: PHP上传文件的大小限制 Warning: POST Content-Length of 625523488 bytes exceeds the limit of 8388608 bytes in Unknown on line 0 当 Warning: on line 0 做出错误警告时,设定 e 阅读全文
posted @ 2023-04-06 14:00 伊索 阅读(705) 评论(0) 推荐(0)
摘要: 博客园的转载方法 转载来源 https://www.cnblogs.com/sound-of-wind-rain/p/16010586.html 1、在要转载的博客上点击右键,选择“审查元素”(F12)。 2、按CTRL+F,搜索 cnblogs_post_body ,找到后,右键点击该DIV,选择 阅读全文
posted @ 2023-04-01 10:55 伊索 阅读(95) 评论(0) 推荐(0)
摘要: 转载来源 https://www.cnblogs.com/XiaoMingBlingBling/p/14651830.html demo源码下载:点击下载 HTML代码(index.html): 注:代码编撰区域使用开源项目 ACE (Ajax.org Cloud9 Editor) 实现 <!DOC 阅读全文
posted @ 2023-04-01 10:46 伊索 阅读(225) 评论(0) 推荐(0)
摘要: 在Termux中运行 aarch64/arm64 的二进制文件时,会提示 bash: /data/data/com.termux/files/home/bin/bb: cannot execute: required file not found 用 ldd 命令检查 apt install ldd 阅读全文
posted @ 2023-03-27 13:37 伊索 阅读(3213) 评论(0) 推荐(0)
摘要: termux安装apache2+php 使用命令开启 存储 权限 termux-setup-storagetermux 需要开启内存卡 /sdcard 或者 /storage/emulated/0 存储 termux 的前缀变量 $PREFIX 指向 /data/data/com.termux/fi 阅读全文
posted @ 2023-03-25 13:53 伊索 阅读(1021) 评论(0) 推荐(0)
摘要: javascript:$('code,pre').css('user-select','auto'); 阅读全文
posted @ 2023-03-24 20:19 伊索 阅读(34) 评论(0) 推荐(0)
摘要: https://zhuanlan.zhihu.com/p/488024718 # 举例目录: tmp #目录 ├─ aaa #目录 ├─ bbb #目录 ├─ ccc.txt #文件 └─ ddd.txt #文件 # 7z排除/忽略指定目录和文件的命令示范: 7z a -t7z tmp.7z ./t 阅读全文
posted @ 2023-03-22 06:33 伊索 阅读(1315) 评论(0) 推荐(0)
摘要: PHP一种优雅的为数组的每个元素添加前缀的方法 (PHP 5.3+): https://qa.1r1g.com/sf/ask/533234761/ 添加前缀 $prefixed_array = preg_filter('/^/', 'prefix_', $array); 添加后缀 $anchor = 阅读全文
posted @ 2023-03-22 06:14 伊索 阅读(269) 评论(0) 推荐(0)
摘要: Debian配置系统中文语言及环境 1,安装语言包 sudo apt install locales 2,配置语言环境 sudo dpkg-reconfigure locales 按下空格即可选择,前面带星号(*)即被选中,通常不需要全部选择安装,选择需要的即可。 3,locale命令基本使用 查看 阅读全文
posted @ 2023-03-22 05:54 伊索 阅读(3715) 评论(0) 推荐(0)
摘要: C.UTF-8和en-US.UTF-8语言环境有什么区别? 一般来说,C.utf8 是 POSIX 标准兼容的默认语言环境,中的 C 指的是计算机computer。意味着只有严格的ASCII字符才是有效的,扩展后允许基本使用UTF-8。 en_US.utf8=美式英语UTF-8语言环境。en_US指 阅读全文
posted @ 2023-03-22 05:26 伊索 阅读(1683) 评论(0) 推荐(0)
摘要: debian安装最小桌面,适合vnc使用 apt -y updateapt -y upgrade # 安装中文 apt -y install aptitudeaptitude install localesdpkg-reconfigure localesnano /etc/default/local 阅读全文
posted @ 2023-03-14 22:37 伊索 阅读(859) 评论(0) 推荐(0)
摘要: 在下面的网址中下载对应版本的三个 dll 文件 php_raphf.dll , php_propro.dll , php_http.dll http://windows.php.net/downloads/pecl/releases/ 在php.ini中增下以下三行,有不要填写完整的路径 exten 阅读全文
posted @ 2023-02-25 18:28 伊索 阅读(367) 评论(0) 推荐(0)
摘要: cd /home/tmp wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.debapt install ./google-chrome-stable_current_amd64.deb vim /e 阅读全文
posted @ 2022-05-30 12:36 伊索 阅读(567) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/sphinx1122/article/details/83663634 有更改 # 找到两个字符串完全相同的部分 # 赋值给$longest,当找到有最长的字符串,就替换$longest # 这里的 $len 不能大于$str1的长度,否则可能无限循环, 阅读全文
posted @ 2022-05-22 15:43 伊索 阅读(467) 评论(0) 推荐(0)
摘要: # 删除无意义的空行 $str = preg_replace("/\r/", "\n", $str); #替换\n前面的空白字符为\n,然后把多个\n只留一个 $str = preg_replace("/\s+\n/", "\n", $str); $str = preg_replace("/\t/" 阅读全文
posted @ 2022-05-17 11:45 伊索 阅读(82) 评论(0) 推荐(0)
摘要: apt update apt search libidn apt -y install libidn2-0 libidn2-0-dev libidn2-dev libicu-dev apt -y install zlib1g zlib1g-dev libcurl4-openssl-dev libss 阅读全文
posted @ 2022-05-15 17:37 伊索 阅读(79) 评论(0) 推荐(0)
摘要: echo shell_exec("/usr/bin/ffmpeg 2>&1"); 文件名最好带上相对或者绝对目录,这样可以避免文件名错误 比如文件名不能以 “-” 开头 ffmpeg 出现 /opt/lampp/lib/libstdc++.so.6mv /opt/lampp/lib/libstdc+ 阅读全文
posted @ 2022-04-25 13:11 伊索 阅读(281) 评论(0) 推荐(0)
摘要: php-curl 遇到 cloudflare防御 Please Wait... Please enable cookies. php 请求似乎缺少 '__cfruid' cookie。 https://www.jianshu.com/p/bdb7e11e52db 方法一、使用浏览器模拟技术请求目标网 阅读全文
posted @ 2022-04-12 17:32 伊索 阅读(1564) 评论(0) 推荐(0)
摘要: 通过文件头来判断文件类型 https://www.garykessler.net/library/file_sigs.html https://en.wikipedia.org/wiki/List_of_file_signatures https://gist.github.com/Qti3e/63 阅读全文
posted @ 2022-04-08 15:41 伊索 阅读(512) 评论(0) 推荐(0)
摘要: 批处理,删除含有关键字的文件及目录 转载 https://blog.csdn.net/weixin_34148508/article/details/94558767 @echo off rem 如果是磁盘符,最好加上\符合 set DESC_PATH=D:\tx\WXSavePath\ rem 只 阅读全文
posted @ 2022-04-02 07:22 伊索 阅读(657) 评论(0) 推荐(0)