APC 与 pecl 上传进度
在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这篇博文的第二条评论中有一个有趣的信息:上传进度表 - 常见问题和一些答案 : (引用) :
(博文和评论均来自 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) :
(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 ^^ )尝试通过 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.