#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2013
    Posts
    16
    Rep Power
    0

    How to show progress bar to users while uploading file in php?


    How to show progress bar to users while uploading file in php?

    when user uploads a file, i wan to show 'wait upload in progress' message or progress bar..
    after the download completes the message or progress bar should be closed automatically...

    how to do it?
  2. #2
  3. --
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Jul 2012
    Posts
    3,959
    Rep Power
    1014
    Hi,

    this is a JavaScript thing, not a PHP thing.

    PHP runs once per request. It has no concept of "progress". Checking the progress of the upload is up to the browser. Google for "html5 upload" or "ajax upload". There are many, many tutorials and libraries for this.
    Last edited by Jacques1; December 13th, 2013 at 02:09 AM.
    The 6 worst sins of security ē How to (properly) access a MySQL database with PHP

    Why canít I use certain words like "drop" as part of my Security Question answers?
    There are certain words used by hackers to try to gain access to systems and manipulate data; therefore, the following words are restricted: "select," "delete," "update," "insert," "drop" and "null".

IMN logo majestic logo threadwatch logo seochat tools logo