Jump to content

PHP APC


jcombs_31

Recommended Posts

Anyone have experience installing and using this extension? I was thinking about creating a progress bar for file uploads because the project I'm working on will have rather large upload sizes, roughly 2-10 MB.  I was reading about APC and I'm installing it on my dev box now.  Just curious if anyone has experimented with it.

Link to comment
Share on other sites

Correct. In fact if a new upload is started while an existing one is in progress, the status of the new upload replaces that of any previous upload.

 

Note that the file upload tracking is not threadsafe at this point, so new uploads that happen while a previous one is still going will disable the tracking for the previous.

 

In order to display the upload status for a specific uploaded file in the correct client, it would in fact require that the client know and supply a unique identifier with the HTTP requests being made to fetch, update, and display the status. On the server, this unique id would used to retrieve the correct upload status that APC would (future tense, it currently does not do this) maintain for each file concurrently being uploaded. The file name could be used as the  identifier, except if two people happen to be uploading a file with the same name at the same time.

Link to comment
Share on other sites

Correct. In fact if a new upload is started while an existing one is in progress, the status of the new upload replaces that of any previous upload.

 

 

 

Ok, well it probably worthless to use then. Imagine if Youtube were using it, it would be switching between hundreds of file upload progresses every few milliseconds.

It would be hilarious and pretty useless. :pirate:

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.