upload progress bar WITHOUT using APC or Flash
I need to make an upload page for huge files (over 50Mb) and I would add a progress bar.
I'm on a shared hosting and, at least for now, I can't switch on a VPS. For this reason, I can't install the APC.
I looked for days without found answers to my question. All the progress bar scripts I found use APC or Flash (that I would avoid).
Someone knows a solution?
I have never used it so cannot vouch for it, but I recalled seeing a PEAR package you could take a look at: http://pear.php.net/package/HTML_Progress2
I tried it but I didn't understood how to use it with in my upload page.
Tried also the examples in the package, but they returns errors like "Strict Standards: Non-static method PEAR::setErrorHandling() should not be called statically in /http_upload.php on line 16" or "Fatal error: Class 'HTTP_Upload' not found in /http_upload.php on line 18"
I hate when that happens.
The strict standards warning is not fatal (though it would be nice to fix), but the "not found" error obviously needs to be resolved. Looks like it's trying to use this PEAR package -- apparently not a specific dependency for the HTML_Progress2 package, but used by the sample code, perhaps?
Nothing... it doesn't works
Or maybe, I'm not able to make it working (I'm at my first experience with php)
Probably not a simple thing to implement, even for a fairly experienced PHP-er. As I've never tried this, I probably don't have much to add, and if in your place I'd probably still be scouring the interwebs for a ready-made solution. This may be one of the reasons lots of sites use Java or Flash applets to do file uploads, even when it's a PHP site.
Originally Posted by david-lee
Before you put too much time into this, I'd suggest that you check to make sure it's even possible to upload such large files to your site. Most shared hosts have strict execution time limits (generally 60 seconds) that make it very difficult (or at least, unreliable) to upload files over 10-20MB.
Yes it's possible.
I already tried with my upload page using a 50Mb file.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)