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 aroun开发者_C百科d for APC vs pecl uploadprogress
doesnt return nothin usefull)
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 ^^ )
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.
精彩评论