APC 与 pecl 上传进度

发布于 2024-08-15 17:47:41 字数 520 浏览 4 评论 0原文

在 drupal 的状态报告页面中,我通常会找到此消息(在全新安装时):

您的服务器能够显示文件上传进度,但没有所需的库。建议安装 PECL uploadprogress 库(首选)或安装 APC。

但我一直不明白为什么它更喜欢 PECL uploadprogress 库 而不是 APC,这就是我今天的问题。

pecl uploadprogress 是否比 APC 更快、占用更少的系统资源,或者更容易安装/配置/使用?

有人知道为什么它比 APC 更受青睐吗? (谷歌浏览 APC vs pecl uploadprogress 不会返回任何有用的信息)

In the Status Report page in drupal, i usually find this message (on fresh installation):

Your server is capable of displaying file upload progress, but does not have the required libraries. It is recommended to install the PECL uploadprogress library (preferred) or to install APC.

But i never understood why its preferred the PECL uploadprogress library over APC, and that's my question today.

Is pecl uploadprogress faster, take less system resources, or is more easy to install/configure/use then APC?

Anyone have ideas about why it is preferred over APC? (googlin around for APC vs pecl uploadprogress doesnt return nothin usefull)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

昵称有卵用 2024-08-22 17:47:41

这篇博文的第二条评论中有一个有趣的信息:上传进度表 - 常见问题和一些答案 : (引用) :

主要区别是:这个
扩展使用文件系统作为
临时存储,APC使用共享
记忆。如果你想使用
另一个字节码缓存而不是 APC 或者做
不想为任何安装 APC
原因,这个规定
功能也是如此。


(博文和评论均来自 Christian Stocker,他是 pecl 的两位作者之一::uploadprogress 扩展名;所以我猜他知道他在说什么 ^^ )

There is an interesting information in the second comment of this blog-post : Upload Progress Meter - Common issues and some answers : (quoting) :

The main difference is: this
extension uses the filesystem as
temporary storage, APC uses shared
memory
. And if you'd like to use
another Bytecodecache than APC or do
not want to install APC for any
reason, this one provides that
functionality, too.

(Both the blog-post and that comment are from Christian Stocker, one of the two authors of the pecl::uploadprogress extension ; so I guess he knows what he's talking about ^^ )

若言繁花未落 2024-08-22 17:47:41

尝试通过 Flash 组织您的上传。 swfupload.org 是最好的解决方案。
文件将由Flash上​​传,Flash将负责进度监控,并且不依赖于服务器端。它还允许在“浏览文件”窗口中选择多个文件。

Pecl 模块有点 hacky。 APC 提供更稳定的解决方案。但 99% swfupload 能更好地解决问题。

Try to organize your uploads via flash. swfupload.org is the best solution.
File will be uploaded by flash, and flash will take care about progress monitoring and it doesn't depend on server side. It also allows to select multiple files in "Browse file" window.

Pecl module is little hacky. APC gives more stable solution. But in 99% swfupload solves problem better.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文