河汉清且浅,牵牛敦而纯
摘要: PHP获取目录中的全部内容RecursiveDirectoryIterator 码农老张 posted @ 2021-03-31 09:44 这次我们来介绍一个SPL库中的目录迭代器,它的作用其实非常简单,从名字就可以看出来,就是获取指定目录下的所有内容。之前我们要遍历目录获取目录及目录下的所有文件 阅读全文
posted @ 2024-07-09 09:34 伊索 阅读(2) 评论(0) 推荐(0) 编辑
摘要: https://baike.baidu.com/item/ANSI/10401940?fr=aladdin ANSI 标准编码代表 GB2312编码 这种编码的文件(包括文件名和文件内容)传输到另一种 ANSI 编码的系统之后,可能会产生乱码 需要编码处理 <?php $text = '鏂板缓鏂囦欢 阅读全文
posted @ 2024-06-04 09:23 伊索 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 设置\应用\默认应用\重置 控制面板\默认程序\将文件类型或协议与程序关联 阅读全文
posted @ 2024-04-14 08:51 伊索 阅读(3) 评论(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 伊索 阅读(6) 评论(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 伊索 阅读(81) 评论(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 伊索 阅读(20) 评论(0) 推荐(0) 编辑
摘要: 反向代理设置ProxyPreserveHost导致301重定向 配置反向代理并不需要打开ProxyRequests指令 当 ProxyPreserveHost On 时,客户端提供的 Host 会被传递到http服务器当 ProxyPreserveHost Off 时,ProxyPass 指定的 H 阅读全文
posted @ 2024-01-30 05:58 伊索 阅读(158) 评论(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:33 伊索 阅读(3) 评论(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 伊索 阅读(22) 评论(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 伊索 阅读(22) 评论(0) 推荐(0) 编辑
摘要: echo '字符串交集'; $intersection = array_intersect(str_split($str1), str_split($str2)); $result = implode('', $intersection); # 找到两个字符串完全相同的部分 # 赋值给$longes 阅读全文
posted @ 2024-01-04 20:20 伊索 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 不间断空格(non-breaking space),即前端页面上的 &nbsp; UTF-8编码中ASCII为194和160表示为 no-break space空格,unicode表示为 \xc2 和\xa0 或者是 \u00c2\u00a0,即 c2a0 ,会被HTML转义为 &nbsp; 0xC 阅读全文
posted @ 2023-12-27 01:51 伊索 阅读(145) 评论(0) 推荐(0) 编辑
摘要: Html空格标签,这6种你用过吗 今天给大家说一说,HTML中的6种空格表示: 1:&nbsp; 它叫不换行空格,全称No-Break Space,它是最常见和我们使用最多的空格,在HTML中,如果用空格键来当做空格,不会累加的只算1个,要使用html实体表示才可累加,该空格占据宽度受字体影响。 2 阅读全文
posted @ 2023-12-27 01:33 伊索 阅读(145) 评论(0) 推荐(0) 编辑
摘要: https://cygwin.com/packages/summary/perl-Net-SSLeay-src.html Net::SSLeay 依赖于: cygport, libcrypt-devel, libnsl-devel, libssl-devel, perl-Test-Exception 阅读全文
posted @ 2023-12-21 21:46 伊索 阅读(64) 评论(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 伊索 阅读(31) 评论(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:40 伊索 阅读(26) 评论(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 伊索 阅读(15) 评论(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 伊索 阅读(313) 评论(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 伊索 阅读(89) 评论(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 伊索 阅读(16) 评论(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 伊索 阅读(586) 评论(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 伊索 阅读(68) 评论(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 伊索 阅读(106) 评论(0) 推荐(0) 编辑