简体   繁体   English

APC vs pecl uploadprogress

[英]APC vs pecl uploadprogress

In the Status Report page in drupal, i usually find this message (on fresh installation): 在drupal的状态报告页面中,我通常会找到此消息(全新安装):

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. 建议安装PECL uploadprogress库(首选)或安装APC。

But i never understood why its preferred the PECL uploadprogress library over APC , and that's my question today. 但是我从来没有理解为什么它首选PECL uploadprogress库而不是APC ,这就是我今天的问题。

Is pecl uploadprogress faster, take less system resources, or is more easy to install/configure/use then APC? pecl uploadprogress更快,占用更少的系统资源,还是更容易安装/配置/使用APC?

Anyone have ideas about why it is preferred over APC? 任何人都有关于为何比APC更受欢迎的想法? (googlin around for APC vs pecl uploadprogress doesnt return nothin usefull) (goclin周围的APC vs pecl uploadprogress不会返回没什么APC vs 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 . 主要区别在于: 此扩展使用文件系统作为临时存储,APC使用共享内存 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. 如果你想使用另一个Bytecodecache而不是APC或者不想因任何原因安装APC,那么这个也提供了这个功能。

(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 ^^ ) (博客文章和评论都来自Christian Stocker, pecl::uploadprogress扩展的两位作者之一;所以我猜他知道他在说什么^^)

Try to organize your uploads via flash. 尝试通过Flash整理上传内容。 swfupload.org is the best solution. swfupload.org是最好的解决方案。 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. Pecl模块有点hacky。 APC gives more stable solution. APC提供更稳定的解决方案。 But in 99% swfupload solves problem better. 但99%的swfupload解决问题更好。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM