views:

124

answers:

5

How to show progress bar in PHP where i have to upload the file size of of 100MB? I cannot have APC installed. I am allowed to do so.. Help me out to get it done...

P.S > I DO NOT HAVE DEDICATED SERVER HENCE CANNOT USE APC

We have PHP 5.2+

+1  A: 

Check this out please.

Sarfraz
I hope it doesnt need APC. as I cant use APC....
OM The Eternity
@Sarfarz I not able to get it installed..
OM The Eternity
@sarfraz pls explain how to make this happen..????
OM The Eternity
A: 

APC is really the best (read: only) choice you're going to get without recompiling PHP and using unsupported third-party patches.

Have you considered using a client-side plugin to perform the upload status information? There's Plupload, for example, which will pick from a variety of plugins that the user may have.

Why are you "not allowed" APC?

Charles
Because we do not have Dedicated server
OM The Eternity
Have you asked your web hosting provider about installing APC? Unless they're a know-nothing reseller, they should seriously consider installing APC for the bytecode caching alone...
Charles
yes I did, they denied to provide it, as we have the shared server.
OM The Eternity
Consider finding another host, or switching to a Virtual Private Server. VPSes are extremely affordable. At the minimum, I would suggest switching hosts. There are very few downsides to installing APC, and if they are unable to for technical reasons, you're in deep trouble anyway...
Charles
-ve not possible to switch the servers... project is already live.. and with heavy users 24x7.. cannot do switch.. need to give this functionality with present scenarios only
OM The Eternity
+2  A: 

for me the best choice is SWFupload...

check this demo: http://demo.swfupload.org/v250beta3/formsdemo/index.php just fill the form attach a file and click send... you will see how progress bar are approaching.

you don't need any server side scripts, besides the one to handle incoming file.

Dobiatowski
Grt!! it works.. But again Y should User have to mingle into extra plugin dowmnload for flash player version.. i liked it.. and solves my almost requirement, but i dont want user to get display for downloading Flash 9+
OM The Eternity
+2  A: 

The best approach for uploading large files that I've seen yet is to use PLUpload. It supports file chunnking (using Flash, Gears, Silverlight or Browser Plus) which will also allow you to keep your PHP file upload limits set lower.

Plupload v1.2.3

Allows you to upload files using HTML5 Gears, Silverlight, Flash, BrowserPlus or normal forms, providing some unique features such as upload progress, image resizing and chunked uploads.

gnarf
Cant I have single file upload with this plupload?
OM The Eternity
i found single file upload in it, but for that I dont have the Progress bar in it... How to get that thing done?
OM The Eternity
+2  A: 

the most suitable one for is uploadify
its simple & powerful jquery plugin and it can support queuing ,

i had test it before writing this answer with out APC

it had successfully upload 500 MB , its very handy tool

tawfekov
Its Awesome, Axactly :) What I wanted....
OM The Eternity