踩坑总结 第11页
做网站时经常犯的错误总结…..不是很全,仅记录了自己开发时所遇到的问题
Fatal error: Uncaught exception 'Exception' with message 'Failed to download the remote ZIP file.' in /www/wwwroot/s.php:34 Stack trace: #0 /www/wwwroot/s.php(12): downloadAndExtract('/www/wwwroot/te...', 'https://api.4s5...') #1 {main} thrown in /www/wwwroot/s.php on line 34-红穆笔记

Fatal error: Uncaught exception ‘Exception’ with message ‘Failed to download the remote ZIP file.’ in /www/wwwroot/s.php:34 Stack trace: #0 /www/wwwroot/s.php(12): downloadAndExtract(‘/www/wwwroot/te…’, ‘https://api.4s5…’) #1 {main} thrown in /www/wwwroot/s.php on line 34

这个错误通常是由于下载远程 ZIP 文件时出错导致的。你可以检查以下几点:确认远程 ZIP 文件的链接是否有效,可以在浏览器中尝试打开该链接,确认是否可以正常下载。确认 PHP 环境是否有足够的...
红穆的头像-红穆笔记钻石会员红穆3年前
013414
sudo vim /etc/profile sudo: vim: command not found-红穆笔记

sudo vim /etc/profile sudo: vim: command not found

如果在运行 sudo vim /etc/profile 命令时出现 sudo: vim: command not found 的错误提示,那么说明 Vim 编辑器并没有安装在当前的 Linux 系统中。你可以尝试通过以下命令来安装 Vim 编辑器:对...
红穆的头像-红穆笔记钻石会员红穆3年前
074214
网站屏蔽掉无用的蜘蛛,修改robots.txt-红穆笔记

网站屏蔽掉无用的蜘蛛,修改robots.txt

做个小网站,天天被搜索引擎乱爬取。于是写了一份robots,把没用的沙雕蜘蛛全部给屏蔽掉。这是第一步。User-agent: DotBot Disallow: / User-agent: SemrushBot Disallow: / User-agent: SiteAu...
红穆的头像-红穆笔记钻石会员红穆3个月前
013811
PHP 开发一个mvc框架,有什么好的建议吗?-红穆笔记

PHP 开发一个mvc框架,有什么好的建议吗?

开发一个MVC框架需要考虑以下几个方面:设计模式:MVC模式是一个重要的设计模式,但也需要考虑其他设计模式,如工厂模式、单例模式等等。路由系统:要设计一个简单易用的路由系统,方便用户定义...
红穆的头像-红穆笔记钻石会员红穆3年前
01807
Warning: DOMDocument::loadHTML(): Tag nav invalid in Entity, line: 31 in-红穆笔记

Warning: DOMDocument::loadHTML(): Tag nav invalid in Entity, line: 31 in

这个错误通常表示你的 HTML 文档中包含无效的标记,例如不允许使用的标记或未正确关闭的标记等。在这种情况下,DOM 解析器可能无法正确解析 HTML 文档,从而导致加载失败。要解决这个问题,你可...
红穆的头像-红穆笔记钻石会员红穆3年前
01047
网站侧边客服代码 折叠式 圆球客服展示-红穆笔记

网站侧边客服代码 折叠式 圆球客服展示

首先是html代码:<section id="cebian"> <div class="all close"> <div class="shang"> <div class="mune"> <p>Chat w...
红穆的头像-红穆笔记钻石会员红穆4年前
01548