# PHP

**URL:** https://www.isharkfly.com/c/computer-program/php/29.md

[Latest](https://www.isharkfly.com/latest.md) · [Categories](https://www.isharkfly.com/categories.md) · [Tags](https://www.isharkfly.com/tags.md)

---

## [About the PHP category](https://www.isharkfly.com/t/about-the-php-category/2274)

<div class="topic-metadata">

**Author:** [@honeymoose](https://www.isharkfly.com/u/honeymoose)\
**Replies:** 0

</div>

(Replace this first paragraph with a brief description of your new category. This guidance will appear in the category selection area, so try to keep it below 200 characters.) Use the following paragraphs for a longer d…

---

## [LimeSurvey 服务器邮件配置](https://www.isharkfly.com/t/limesurvey/17408)

<div class="topic-metadata">

**Author:** [@hex](https://www.isharkfly.com/u/hex)\
**Replies:** 0\
**Last updated:** [June 7, 2025, 1:40pm UTC](https://www.isharkfly.com/t/limesurvey/17408 "2025-06-07T13:40:46Z")

</div>

通过选择全局设置中的电子邮件设置。 在界面中输入配置信息。 上面是针对 MailGun 的配置。 如果使用的不是默认的端口，那么可以在 SMTP 后面添加端口号就行。 例如，我们使用的端口是 587 的话，那么 SMTP 服务器的配置就需要修改为： smtp.mailgun.org:587 这样可以让连接是特定的端口。

---

## [LimeSurvey 反馈的结果在哪里查看](https://www.isharkfly.com/t/limesurvey/17407)

<div class="topic-metadata">

**Author:** [@hex](https://www.isharkfly.com/u/hex)\
**Replies:** 0\
**Last updated:** [June 7, 2025, 1:34pm UTC](https://www.isharkfly.com/t/limesurvey/17407 "2025-06-07T13:34:53Z")

</div>

进入 LimeSurvey 后台，选择问卷调查，然后选择 Responses。 在 Responses 中可以看到反馈的情况。

---

## [LimeSurvey 官方论坛的地址](https://www.isharkfly.com/t/limesurvey/5765)

<div class="topic-metadata">

**Author:** [@honeymoose](https://www.isharkfly.com/u/honeymoose)\
**Replies:** 1\
**Last updated:** [June 7, 2025, 12:40pm UTC](https://www.isharkfly.com/t/limesurvey/5765 "2025-06-07T12:40:11Z")

</div>

官方中文论坛地址为：https://www.limesurvey.org/en/forum/chinese-forum 论坛好像也没有什么人气，发现最早的回复都是 7 个月以前的了。

---

## [LimeSurvey 安装如果你有什么问题](https://www.isharkfly.com/t/limesurvey/3288)

<div class="topic-metadata">

**Author:** [@honeymoose](https://www.isharkfly.com/u/honeymoose)\
**Replies:** 1\
**Last updated:** [June 5, 2025, 2:32pm UTC](https://www.isharkfly.com/t/limesurvey/3288 "2025-06-05T14:32:04Z")

</div>

和所有计算机程序一样，绝大部分时候程序都能够正常工作，但是有时候程序却不能按照正常的情况工作。 出现这种情况通常有各种可能性，而这里也不能完全说明所有的可能性，如果你有安装的问题，请查看安装的 FAQ。 如果在安装的 FAQ 中不能找到你所需要的解答，你可以访问 LimeSurvey 的官方论坛 limesurvey.org 或者加入 IRC 频道。 官方的中文社区实在是太安静了。 基本上处于没有人访问的状态：Chinese f…

---

## [LimeSurvey Ubuntu 服务器上安装](https://www.isharkfly.com/t/limesurvey-ubuntu/5764)

<div class="topic-metadata">

**Author:** [@hex](https://www.isharkfly.com/u/hex)\
**Replies:** 0\
**Last updated:** [June 4, 2025, 4:00am UTC](https://www.isharkfly.com/t/limesurvey-ubuntu/5764 "2025-06-04T04:00:00Z")

</div>

在你的 Web 服务器上安装。 如果你是在你的 Web 服务器上安装 LimeSurvey， 你可以按照下面的步骤直接进行安装就可以了。 运行 un-zip 命令来在服务器对下载的 zip 文件进行解压。 拷贝文件 运行下面的命令来执行文件拷贝： mv limesurvey /var/www/html/ 运行权限问题 如果遇到安装的时候有权限问题，请参考：LimeSurvey 安装权限 安装界面 在浏览器中访问安装界面…

---

## [LimeSurvey 安装权限](https://www.isharkfly.com/t/limesurvey/17392)

<div class="topic-metadata">

**Author:** [@hex](https://www.isharkfly.com/u/hex)\
**Replies:** 0\
**Last updated:** [June 4, 2025, 8:54pm UTC](https://www.isharkfly.com/t/limesurvey/17392 "2025-06-04T20:54:02Z")

</div>

在安装的时候提示错误： Internal Server Error Application runtime path "/var/www/html/limesurvey/tmp/runtime" is not valid. Please make sure it is a directory writable by the Web server process. An internal error occurred while th…

---

## [本想从代码上安装 LimeSurvey](https://www.isharkfly.com/t/limesurvey/17391)

<div class="topic-metadata">

**Author:** [@hex](https://www.isharkfly.com/u/hex)\
**Replies:** 0\
**Last updated:** [June 4, 2025, 8:41pm UTC](https://www.isharkfly.com/t/limesurvey/17391 "2025-06-04T20:41:36Z")

</div>

但是 LimeSurvey 的源代码仓库实在是太大了。 有 1.4GB，不知道都装了点什么呢？ 实在是不想把 Git 的服务器拖垮了。 简单点还是把这个服务改成私有访问吧，否则太费劲了。

---

## [Limesurvey 在校园调查中的应用](https://www.isharkfly.com/t/limesurvey/3004)

<div class="topic-metadata">

**Author:** [@honeymoose](https://www.isharkfly.com/u/honeymoose)\
**Replies:** 0\
**Last updated:** [May 2, 2011, 7:17am UTC](https://www.isharkfly.com/t/limesurvey/3004 "2011-05-02T07:17:41Z")

</div>

Limesurvey是一款在线问卷管理系统，能够完成问卷的设计、修改、发布、回收和统计等多项功能。同时它也是一个开源软件项目，其最新版本的软件包可以完全免费的获取和使用。它用PHP语言编写并可以使用多种数据库，它集成了调查程序开发、调查问卷的发布以及数据收集等功能，使用它用户不必了解这些功能的编程细节。 本系统包括了分支、自定义页面布局和设计，并且提供了基本的统计分析功能。调查可以匿名访问也可以限制为拥有“访问一次”令牌的用户参加，从…

---

## [WordPress 显示维护信息](https://www.isharkfly.com/t/wordpress/13440)

<div class="topic-metadata">

**Author:** [@honeymoose](https://www.isharkfly.com/u/honeymoose)\
**Replies:** 0\
**Last updated:** [April 24, 2021, 4:15pm UTC](https://www.isharkfly.com/t/wordpress/13440 "2021-04-24T16:15:46Z")

</div>

如果 Word Press 显示维护信息。 原因和解决 出现上面提示信息的原因 WordPress 可能在进行插件更新。 这个时候会在服务器上放一个 .maintenance 文件。 最简单的方法，就是到服务器上删除这个文件。

---

## [Moodle（魔灯）移动端提供的扫码登录](https://www.isharkfly.com/t/moodle/17089)

<div class="topic-metadata">

**Author:** [@comcast](https://www.isharkfly.com/u/comcast)\
**Replies:** 0\
**Last updated:** [March 18, 2025, 9:43pm UTC](https://www.isharkfly.com/t/moodle/17089 "2025-03-18T21:43:28Z")

</div>

Moodle 移动端提供了扫描 QR 代码登录。 首先需要进入用户的后台，然后选项用户配置。 随后单击查看 QR 代码，然后使用手机 APP 扫描即可。 扫描后提示无法登录问题 当使用手机 APP 扫描后，可能会提示无法登录的问题。 这个问题是因为 Moodle 的授权策略。 根据这里的内容：https://moodle.org/mod/forum/discuss.php?d=413193 如果需要提供扫描并…

---

## [魔灯 - Moodle](https://www.isharkfly.com/t/moodle/3890)

<div class="topic-metadata">

**Author:** [@honeymoose](https://www.isharkfly.com/u/honeymoose)\
**Replies:** 0\
**Last updated:** [September 21, 2012, 7:09pm UTC](https://www.isharkfly.com/t/moodle/3890 "2012-09-21T19:09:26Z")

</div>

魔灯是澳大利亚教师 Martin Dougiamas 基于建构主义教育理论而开发的课程管理系统， 是一个免费的开放源代码的软件， 目前在各国已广泛应用。 魔灯 这个词是 Modular Object-Oriented Dynamic Learning Environment ，即模块化面向对象的动态学习环境的缩写。 是一个用来建设基于 Internet 的课程和网站的软件包。 魔灯 平台依据社会建构主义的教学思想，即教育者（老师）和…

---

## [Moodle 4.4 发布日志](https://www.isharkfly.com/t/moodle-4-4/17067)

<div class="topic-metadata">

**Author:** [@hex](https://www.isharkfly.com/u/hex)\
**Replies:** 0\
**Last updated:** [March 14, 2025, 6:23pm UTC](https://www.isharkfly.com/t/moodle-4-4/17067 "2025-03-14T18:23:23Z")

</div>

以下是 4.4.0 中已修复问题的完整列表。 如果您要从以前的版本升级，请参阅用户文档中的升级。 服务器要求 这些只是支持的最低版本。我们建议您保持所有软件和操作系统是最新的。 Moodle 升级：Moodle 4.1.2 或更高版本。 PHP 版本：最低 PHP 8.1.0 注意：自 Moodle 4.3 以来，最低 PHP 版本有所增加。PHP 8.3.x 也受支持。有关详细信息，请参见 PHP。 PHP 扩展钠是必需的。参…

---

## [PHP 参数 max\_input\_vars 的解释与调整](https://www.isharkfly.com/t/php-max-input-vars/17056)

<div class="topic-metadata">

**Author:** [@honeymoose](https://www.isharkfly.com/u/honeymoose)\
**Replies:** 1\
**Last updated:** [March 13, 2025, 5:55pm UTC](https://www.isharkfly.com/t/php-max-input-vars/17056 "2025-03-13T17:55:21Z")

</div>

PHP 参数 max\_input\_vars 解释

---

## [备忘下 Moodle 中文社区官方的地址](https://www.isharkfly.com/t/moodle/16948)

<div class="topic-metadata">

**Author:** [@hex](https://www.isharkfly.com/u/hex)\
**Replies:** 0\
**Last updated:** [February 18, 2025, 4:34am UTC](https://www.isharkfly.com/t/moodle/16948 "2025-02-18T04:34:39Z")

</div>

社区的注册申请还挺麻烦的。 说实话真的没有 Discourse 友好。 不过也备忘下吧：https://moodle.org/mod/forum/view.php?id=965 内容虽然不多也可以凑合看看。 不过就这社区访问量，其中还不少是垃圾，看来已经很长时间没有人维护了。

---

## [Moodle 授权 - Moodle 手动账户 【添加一个新 Moodle 用户】](https://www.isharkfly.com/t/moodle-moodle-moodle/5800)

<div class="topic-metadata">

**Author:** [@honeymoose](https://www.isharkfly.com/u/honeymoose)\
**Replies:** 0\
**Last updated:** [July 7, 2013, 2:41pm UTC](https://www.isharkfly.com/t/moodle-moodle-moodle/5800 "2013-07-07T14:41:39Z")

</div>

这个可以在路径 首页 》 网站管理 》 用户 》 帐户 》 添加用户 下提供的功能里面完成添加一个 Moodle 用户。

---

## [魔灯（Moodle）简介](https://www.isharkfly.com/t/moodle/16950)

<div class="topic-metadata">

**Author:** [@hex](https://www.isharkfly.com/u/hex)\
**Replies:** 2\
**Last updated:** [February 23, 2025, 2:38pm UTC](https://www.isharkfly.com/t/moodle/16950 "2025-02-23T14:38:07Z")

</div>

Moodle是Modular Object-Oriented Dynamic Learning Environment（模块化面向对象动态学习环境）的简称，中文译名为魔灯，是由澳大利亚Marting Dougiamas博士在2002年主持开发的开放源码网络教育平台，是一个用来建设基于Internet的 课程和网站的软件包。魔灯平台基于建构主义教育理论，即教育者（教师）和学习者（学生）都是平等的主体，在教学活动中，不同主体之间相互协作、交…

---

## [魔灯（Moodle）如何允许匿名访问](https://www.isharkfly.com/t/moodle/16957)

<div class="topic-metadata">

**Author:** [@hex](https://www.isharkfly.com/u/hex)\
**Replies:** 0\
**Last updated:** [February 18, 2025, 10:21pm UTC](https://www.isharkfly.com/t/moodle/16957 "2025-02-18T22:21:54Z")

</div>

当 魔灯（Moodle） 创建好课程后，默认是不允许匿名访问的。 当用户不登录的时候，会提示需要登录的提示。 方法 在默认的配置情况下，只需要把 Auto-login guests 选项选择。 随后选择进入主界面。 当这个功能选项选择后，在主界面中将会看到以匿名用户进行访问的按钮。

---

## [Moodle 提示语言在服务器上不被完全支持](https://www.isharkfly.com/t/moodle/16953)

<div class="topic-metadata">

**Author:** [@hex](https://www.isharkfly.com/u/hex)\
**Replies:** 0\
**Last updated:** [February 18, 2025, 5:16am UTC](https://www.isharkfly.com/t/moodle/16953 "2025-02-18T05:16:29Z")

</div>

错误信息如下： Your server does not seem to fully support the following languages: 通过在服务器上配置下语言环境即可。 运行命令： sudo dpkg-reconfigure locales 当完成配置后，还需要重启 Apache 服务器让配置生效。 翻页到最后，选择配置上简体中文。 然后回要求选择配置一个默认的环境。 为了方便，…

---

## [魔灯（Moodle）实例安装状态](https://www.isharkfly.com/t/moodle/16951)

<div class="topic-metadata">

**Author:** [@hex](https://www.isharkfly.com/u/hex)\
**Replies:** 0\
**Last updated:** [February 18, 2025, 4:43am UTC](https://www.isharkfly.com/t/moodle/16951 "2025-02-18T04:43:22Z")

</div>

Moodle 实例的安装状态可以通过网站：https://stats.moodle.org/ 进行查询。 整体的数量也就是欧美，甚至俄罗斯还多一些。 中文环境下使用甚少。

---

## [魔灯（Moodle）的来源](https://www.isharkfly.com/t/moodle/16949)

<div class="topic-metadata">

**Author:** [@hex](https://www.isharkfly.com/u/hex)\
**Replies:** 0\
**Last updated:** [February 18, 2025, 4:38am UTC](https://www.isharkfly.com/t/moodle/16949 "2025-02-18T04:38:08Z")

</div>

Moodle现在中国的学校越来越受到老师们的喜爱，人们需要给Moodle一个中文译名以便传播和交流。我在上海浦东上南中学的一次教师沙龙会议上，向大家推荐了Moodle，老师们都希望能够使用Moodle来促进学校的高质量教学。在会上，我们一起给Moodle创意了一个中文名称：魔灯 魔灯的隐喻： 1、阿拉丁神灯的故事，Moodle就像那神奇的魔灯，老师们需要什么教学功能，它就给你带来你需要的支持功能，促进学校的高质量教学。 2、计算机…

---

## [Moodle 社区站外链接](https://www.isharkfly.com/t/moodle/16947)

<div class="topic-metadata">

**Author:** [@hex](https://www.isharkfly.com/u/hex)\
**Replies:** 0\
**Last updated:** [February 18, 2025, 4:33am UTC](https://www.isharkfly.com/t/moodle/16947 "2025-02-18T04:33:23Z")

</div>

如果你发布的内容中如果有站外链接，则会提示来讲保护。 如果把图片换成本地图片就没问题。 可惜这中文社区的内容实在是令人发指。 参与的人太少了。

---

## [什么是魔灯（Moodle）](https://www.isharkfly.com/t/moodle/3178)

<div class="topic-metadata">

**Author:** [@honeymoose](https://www.isharkfly.com/u/honeymoose)\
**Replies:** 0\
**Last updated:** [September 24, 2012, 1:32am UTC](https://www.isharkfly.com/t/moodle/3178 "2012-09-24T01:32:31Z")

</div>

本帖最后由 自由至上 于 2012-9-24 09:42 编辑 一、魔灯中文名的由来 “魔灯”，一个充满神秘感的网站群落，正在世界各国的教育领域中悄然兴起。只不过，在欧洲或者是美洲，使用这个网络平台的国家，把它称之为“Moodle”，而在我们中国，称之为——“魔灯”，是谁给这个网站群落起了如此具有魅力的名称呢？这一切源自于将Moodle引入中国教育界的第一人——上海师范大学教授黎加厚，是他赋予了Moodle这样一个充满神话色彩的…

---

## [Moodle 安装时数据版本错误信息](https://www.isharkfly.com/t/moodle/16945)

<div class="topic-metadata">

**Author:** [@hex](https://www.isharkfly.com/u/hex)\
**Replies:** 0\
**Last updated:** [February 17, 2025, 4:03pm UTC](https://www.isharkfly.com/t/moodle/16945 "2025-02-17T16:03:30Z")

</div>

安装 moodle 4.5.2 版本提示数据版本不正确导致安装无法进行。 上面提示错误的版本错误是数据库服务器的版本错误。 如果你的服务器数据库版本过低的话，没有办法就只能升级数据库了。 只有满足所有的安装条件后才可以继续安装。

---

## [Moodle 授权 - Moodle 手动账户 【批量上传添加 Moodle 用户】](https://www.isharkfly.com/t/moodle-moodle-moodle/5801)

<div class="topic-metadata">

**Author:** [@honeymoose](https://www.isharkfly.com/u/honeymoose)\
**Replies:** 0\
**Last updated:** [July 7, 2013, 2:42pm UTC](https://www.isharkfly.com/t/moodle-moodle-moodle/5801 "2013-07-07T14:42:10Z")

</div>

这个可以在路径 首页 》 网站管理 》 用户 》 帐户 》上传用户 下提供的功能里面完成批量上传添加 Moodle 用户。

---

## [Moodle 启动错误 use of undefined constant moodle\\lib\\dml\\moodle\_database](https://www.isharkfly.com/t/moodle-use-of-undefined-constant-moodle-lib-dml-moodle-database/3888)

<div class="topic-metadata">

**Author:** [@honeymoose](https://www.isharkfly.com/u/honeymoose)\
**Replies:** 0\
**Last updated:** [September 20, 2012, 11:42pm UTC](https://www.isharkfly.com/t/moodle-use-of-undefined-constant-moodle-lib-dml-moodle-database/3888 "2012-09-20T23:42:18Z")

</div>

错误提示内容如下：code Notice: Use of undefined constant DIR - assumed ‘DIR’ in E:\\works\\htdocs\\vhosts\\demo.ossez.com\\httpdocs\\p\\moodle\\lib\\dml\\moodle\_database.php on line 27 Call Stack Time Memory Function Location 1 0.0097 25…

---

## [Breakdance页面构建器应该是现在最完美的建站解决方案](https://www.isharkfly.com/t/breakdance/16940)

<div class="topic-metadata">

**Author:** [@upsolution](https://www.isharkfly.com/u/upsolution)\
**Replies:** 1\
**Last updated:** [February 15, 2025, 12:04pm UTC](https://www.isharkfly.com/t/breakdance/16940 "2025-02-15T12:04:54Z")

</div>

Breakdance是一款wordpress的页面构建器，该构建器是我认为目前最完美的一个页面构建器。 官网：https://breakdance.com/

---

## [WordPress ubuntu 按照必要的依赖](https://www.isharkfly.com/t/wordpress-ubuntu/16542)

<div class="topic-metadata">

**Author:** [@hex](https://www.isharkfly.com/u/hex)\
**Replies:** 0\
**Last updated:** [November 1, 2024, 5:20am UTC](https://www.isharkfly.com/t/wordpress-ubuntu/16542 "2024-11-01T05:20:04Z")

</div>

针对 ubuntu 中安装 WordPress 时候需要的必要的依赖的命令。 使用下面的命令来在 Ubuntu 中安装必要的依赖。 sudo apt update sudo apt install apache2 \\ ghostscript \\ libapache2-mod-php \\ mysql-server \\ …

---

## [WordPress 的永久链接显示错误](https://www.isharkfly.com/t/wordpress/16510)

<div class="topic-metadata">

**Author:** [@honeymoose](https://www.isharkfly.com/u/honeymoose)\
**Replies:** 0\
**Last updated:** [October 30, 2024, 8:41pm UTC](https://www.isharkfly.com/t/wordpress/16510 "2024-10-30T20:41:11Z")

</div>

最近迁移 Word press 到 ubuntu 的时候。 WordPress 的这个配置显示了如何配置永久链接。 当调整上面的配置后，还是无法显示内容。 问题和解决 出现上面的问题主要是因为 WordPress 的 .htaccess 配置没有起作用。 这是因为可能在 ubuntu 配置虚拟主机的时候没有配置好而出现的问题。 一个主要的参数是：AllowOverride 需要设置为 all。 Apache…

---

## [WordPress 一升级后台就挂了](https://www.isharkfly.com/t/wordpress/16169)

<div class="topic-metadata">

**Author:** [@honeymoose](https://www.isharkfly.com/u/honeymoose)\
**Replies:** 1\
**Last updated:** [August 21, 2024, 5:44pm UTC](https://www.isharkfly.com/t/wordpress/16169 "2024-08-21T17:44:45Z")

</div>

Wordpress 升级后的后台就这德性了。 太难了。 前端好像没有受到影响，就是后端的问题。 删除了所有的插件，代码后用新文件覆盖了，还有这个问题。 搞了半天是腾讯的问题。 腾讯的配置升级了，就这样一堆垃圾。 升级对已有的用户的影响应是没有影响。 CloudFlare 升级就完全没有关系。 只能先迁移到 CloudFlare 上去了。

[Next page](https://www.isharkfly.com/c/computer-program/php/29.md?page=1)
