河汉清且浅,牵牛敦而纯
摘要: 设置\应用\默认应用\重置 控制面板\默认程序\将文件类型或协议与程序关联 阅读全文
posted @ 2024-04-14 08:52 伊索 阅读(1) 评论(0) 推荐(0) 编辑
摘要: td, th { padding: 3px 7px 2px 7px; font-weight: bold; --blue: #007bff; --indigo: #6610f2; --purple: #6f42c1; --pink: #e83e8c; --red: #dc3545; --orange 阅读全文
posted @ 2024-02-15 17:28 伊索 阅读(2) 评论(0) 推荐(0) 编辑
摘要: touch($path, $fc_time, $fc_time); echo "\n $path 已经被建立,并且重置了修改时间和访问时间\n"; echo "\n 如果是 windows 系统,将会执行以下命令重置该文件的建立时间\n"; if(PHP_OS 'WINNT'){ $path = s 阅读全文
posted @ 2024-02-07 23:21 伊索 阅读(3) 评论(0) 推荐(0) 编辑
摘要: pre{ width: 96%; margin: auto; border-radius: 15px 15px; border: 3px solid #000; background-color: #445; padding-left: 10px; color: #fff; counter-rese 阅读全文
posted @ 2024-02-03 20:47 伊索 阅读(32) 评论(0) 推荐(0) 编辑
摘要: KVM VPS 的 IPv6 邻居发现响应器 Junxiao Shi2021-04-10 我想要 Docker 的 IPv6 这些天我正在使用 Docker,我希望在我的 Docker 容器中使用 IPv6。在 Docker 中启用 IPv6 的最佳指南是 如何在 Ubuntu 18.04 上为 D 阅读全文
posted @ 2024-01-31 15:57 伊索 阅读(11) 评论(0) 推荐(0) 编辑
摘要: 反向代理设置ProxyPreserveHost导致301重定向 配置反向代理并不需要打开ProxyRequests指令 当 ProxyPreserveHost On 时,客户端提供的 Host 会被传递到http服务器当 ProxyPreserveHost Off 时,ProxyPass 指定的 H 阅读全文
posted @ 2024-01-30 05:58 伊索 阅读(56) 评论(0) 推荐(0) 编辑
摘要: sshpass -p '' ssh -p 22 user@ip # tcp protocol = "tcp" # ipv4 ,inet6 AddressFamily inet # 端口转发 AllowTcpForwarding yes GatewayPorts no # 密钥认证 ssh-keyge 阅读全文
posted @ 2024-01-26 20:34 伊索 阅读(2) 评论(0) 推荐(0) 编辑
摘要: Debian/Ubuntu切换apache+php-fpm模式 安装FastCGI和php-fpm apt install -y libapache2-mod-fcgid php-fpm source envvars apachectl -M apache2 -V phpv=`php -v` php 阅读全文
posted @ 2024-01-25 16:07 伊索 阅读(14) 评论(0) 推荐(0) 编辑
摘要: 如何在Windows中清除PHP CLI屏幕:类似于“cls”命令的简单方法[重复]Clear PHP CLI output system('cls'); 会在屏幕上放置一个 chr(12) (“换页”字符),但不会清屏。 PHP 中的ncurses库不适用于Windows 平台,ncurses_c 阅读全文
posted @ 2024-01-10 01:17 伊索 阅读(10) 评论(0) 推荐(0) 编辑
摘要: echo '字符串交集'; $intersection = array_intersect(str_split($str1), str_split($str2)); $result = implode('', $intersection); # 找到两个字符串完全相同的部分 # 赋值给$longes 阅读全文
posted @ 2024-01-04 20:21 伊索 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 不间断空格(non-breaking space),即前端页面上的   UTF-8编码中ASCII为194和160表示为 no-break space空格,unicode表示为 \xc2 和\xa0 或者是 \u00c2\u00a0,即 c2a0 ,会被HTML转义为   0xC 阅读全文
posted @ 2023-12-27 01:52 伊索 阅读(73) 评论(0) 推荐(0) 编辑
摘要: Html空格标签,这6种你用过吗 今天给大家说一说,HTML中的6种空格表示: 1:  它叫不换行空格,全称No-Break Space,它是最常见和我们使用最多的空格,在HTML中,如果用空格键来当做空格,不会累加的只算1个,要使用html实体表示才可累加,该空格占据宽度受字体影响。 2 阅读全文
posted @ 2023-12-27 01:34 伊索 阅读(83) 评论(0) 推荐(0) 编辑
摘要: Net::SSLeay安装方法 安装Net::SSLeay有编译过程,需要安装 ssl和libz。libz用于编译的函数库;zlib只提供压缩用的函式库和头文件,不涉及到文件操作;gzip和zip提供文件或目录的压缩和解压缩 apt -y install clang build-essential 阅读全文
posted @ 2023-12-21 21:46 伊索 阅读(18) 评论(0) 推荐(0) 编辑
摘要: # 如果body中没有charset ,则在header中提取 $meta = get_meta_charset($html); $charset = preg_match("/charset=[^\w]?([-\w]+)/i", $meta, $temp) ? strtolower($temp[1 阅读全文
posted @ 2023-12-21 21:44 伊索 阅读(16) 评论(0) 推荐(0) 编辑
摘要: PHP升级到8.2版本后,print_r($_SERVER); 发现多了 [HOME] => /var/www phpinfo()函数中的 Environment 项也有 HOME /var/www 推测 $_SERVER['HOME'] 调用了apache用户 www-data 的主目录 /var 阅读全文
posted @ 2023-06-19 19:41 伊索 阅读(22) 评论(0) 推荐(0) 编辑
摘要: file_get_contents()函数的相关参数,支持SSL错误和header $options = array( "ssl" => array( "verify_peer" => false, "verify_peer_name" => false, ), "http" => array( ' 阅读全文
posted @ 2023-06-12 21:38 伊索 阅读(8) 评论(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 伊索 阅读(13) 评论(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 伊索 阅读(239) 评论(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:28 伊索 阅读(60) 评论(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:40 伊索 阅读(15) 评论(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 伊索 阅读(499) 评论(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 伊索 阅读(60) 评论(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 伊索 阅读(97) 评论(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 伊索 阅读(1035) 评论(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 伊索 阅读(356) 评论(0) 推荐(0) 编辑