![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
php
林中寻风
这个作者很懒,什么都没留下…
展开
-
file_get_contents 获取不了网页内容
今天用的时候发现file_get_contents有时获取不到网页内容,百度了好多基本都有无效代码,然后找了好久找到一个能用的,记录一下.$url= 'https://www.baidu.com';$arrContextOptions=array( "ssl"=>array( "verify_peer"=>false, "verify_peer_name"=>false, ), ); $re原创 2022-03-20 09:38:03 · 569 阅读 · 0 评论 -
虚拟主机cpanel面板安装thinktp,更改根目录
虚拟主机cPanel控制面板主机主域名对应的网站根目录为 public_html,但是tp的根目录是public,用301重定向后css和js访问不了原创 2021-11-19 09:14:25 · 990 阅读 · 0 评论 -
php 8 下 phpexcel 报错
今天在用 phpexcel 导出excel一直报错,开启错误提示发现Array and string offset access syntax with curly braces is no longer supported in ***百度下发现PHP7.4后面版本,不再能够使用花括号来访问数组或者字符串的偏移,所有报错,吧下载的class类里面的{} 更换成[]就可以了,记录一下...原创 2021-07-27 13:52:36 · 3409 阅读 · 8 评论