On 9/14/09 5:39 AM, "Phred White" <phplist@xxxxxxxxxxxxxxx> wrote: > > On Sep 13, 2009, at 8:50 PM, Eddie Drapkin wrote: > >> On Sun, Sep 13, 2009 at 9:38 PM, Phred White >> <phplist@xxxxxxxxxxxxxxx> wrote: >>> >>> On Sep 13, 2009, at 7:34 PM, Eddie Drapkin wrote: >>> >>>> On Sun, Sep 13, 2009 at 8:29 PM, Phred White <phplist@xxxxxxxxxxxxxxx >>>>> >>>> wrote: >>>>> >>>>> On Sep 11, 2009, at 1:17 PM, Eddie Drapkin wrote: >>>>> >>>>>> On Fri, Sep 11, 2009 at 1:02 PM, Phred White <phplist@xxxxxxxxxxxxxxx >>>>>>> >>>>>> wrote: >>>>>>> >>>>>>> Hey folks.. >>>>>>> >>>>>>> Anybody ever use APC to show upload progress? >>>>>>> >>>>>>> It sounds really cool, but apc_fetch always returns false a >>>>>>> value for >>>>>>> uploads. I can apc_add something and fetch it, but not for >>>>>>> uploads : ( >>>>>>> (set-up: php-apc 3.0.19, Apache2, php 5.2.10, no suhosin patch) >>>>>>> >>>>>>> There is little info to google on this, and I've been through it. >>>>>>> >>>>>>> I was hoping some hard core, tireless, php programmer just knew >>>>>>> the >>>>>>> answer. >>>>>>> >>>>>>> With high anxiety, Phred >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>>> I recently had to do roughly the same thing (visual upload >>>>>> progress) >>>>>> and I had done some research into APC. What I learned was that >>>>>> the >>>>>> upload tracking didn't work with FastCGI (which would have >>>>>> prevented >>>>>> our switch to nginx, but not a deal breaker) and what broke the >>>>>> deal, >>>>>> though, was the fact that APC's upload progress is apparently not >>>>>> thread safe, so if person A is uploading a file and person B >>>>>> starts an >>>>>> upload, you get a silent failure. Which brings me to another >>>>>> point, >>>>>> it seems to silently fail. >>>>>> >>>>>> Ultimately, I went with a flash based solution because the APC >>>>>> solution had way too many problems to be really useful. It's a >>>>>> nice >>>>>> thought, but I wouldn't recommend it. I know this isn't exactly >>>>>> what >>>>>> you wanted, but I had a similar experience and thought I would >>>>>> share >>>>>> :) >>>>> >>>>> Dang! You are exactly right - that isn't what I wanted to hear! : ( >>>>> But better to know now, then when my timeline is already used up. >>>>> >>>>> Did you write your own flash based solution, or use an canned one? >>>>> >>>>> Thanks, Phred >>>>> >>>>> >>>> >>>> I actually wound up using swfupload because of a friend's >>>> recommendation and also because there's a nifty jQuery plugin for >>>> it. >>>> >>>> The project's main site: http://swfupload.org >>>> The jQuery plugin I'm using: >>>> http://blogs.bigfish.tv/adam/2009/06/14/swfupload-jquery-plugin/ >>>> >>>> The *only* issue I could find with a flash based uploader (I don't >>>> regard flash installation as an issue because we're a video based >>>> site >>>> and well, if you're using our site to watch videos...) was there's >>>> an >>>> as-of-yet unresolved bug in linux flash clients that locks a browser >>>> until upload is completed. Adobe's bug tracker seems to be down for >>>> me at the moment, but if you really want the bug, let me know >>>> offlist >>>> and I'll supply it later. :) >>>> >>>> -- >>>> PHP General Mailing List (http://www.php.net/) >>>> To unsubscribe, visit: http://www.php.net/unsub.php >>>> >>> Hey Eddie: >>> >>> One more question... >>> I have an existing form that provides other data that need to be >>> linked to >>> the file upload. It looks like swfupload, just uploads all by its >>> lonesome. >>> I also need the javascript form validator to be triggered before any >>> uploading occurs. Is this possible? You don't have to tell me how >>> (though I >>> wouldn't mind a few clues). I just want to know if it will meet my >>> needs >>> once i dig in. >>> >>> Thanks >>> >>> >> >> That should all be possible. I'd take a look at >> http://demo.swfupload.org/v220/featuresdemo/index.php as that has most >> of that happening on the page and you can bootleg some of their >> example code :) >> > Bummer... It looked so promising, but on Macs, Flash has to load the > entire file into memory to upload! Rrrrrrrrr. So, it isn't viable for > big files (Gig +) if you need it to be cross platform. > > So now I am looking at perl of all things! If you have any ideas let > me know. thanks for all your help so far. with files that big, perhaps could write client js that polls a script on the server that simply returns the file size(s)? if you want a thermometer, use the number to resize a colored div. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php