I am looking for some kind of 'progress bar' for a file upload script, using PHP. The problem I have is that I don't have access to the cgi-bin directory, so can't use well known solutions such as 'uber uploader' and 'mega upload'

The percentage complete of the file would be nice - although this is not necessary - just some way to show the file is being uploaded would be good! Especially as the files uploaded may be 50MB+!

Mike

    I don't believe that it's possible in PHP if you can't run Perl scripts. I believe that the only solution would be to have a client side app in Java to manage the upload to your PHP script. Honestly, I think that implementing the Java solution is going to be more difficult than it would be to get access to the cgi bin!

      No, is not possible with php, but u can make something like this, u send him to a page that write Uploading on output and after upload is finished u redirect him to another page where u tell him upload successfully ...

        bogu wrote:

        No, is not possible with php, but u can make something like this, u send him to a page that write Uploading on output and after upload is finished u redirect him to another page where u tell him upload successfully ...

        This is probably very simple but - how do you redirect the user to another page BEFORE the file upload starts.

        I.e. i want to redirect them to a page with an animated gif saying 'uploading...' before the file upload starts, and redirect them BACK to the original page - once upload is complete?

          I've used this: http://www.devpro.it/upload_progress/

          Reports from other people who've tried it and also myself are that is does work but it seems to be a bit hit and miss........sometimes it works sometimes it doesn't.

          I think it depends on site traffic and the status of the upload tmp folder

            On the action form u send him to the page that make's the upload and show that gif and after upload finish u redirect him...

            U can do a mutch nice progress bar is u use ajax for upload ....

              PEAR also has an progress bar package (pear.php.net). Never used it myself. Assuming it relies on javascript at the client end.

                Write a Reply...