How to make a progress bar for an upload site..

Discussion in 'PHP' started by asterxnu, Oct 26, 2009.

  1. #1
    asterxnu, Oct 26, 2009 IP
  2. JAY6390

    JAY6390 Peon

    Messages:
    918
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    0
    #2
    JAY6390, Oct 26, 2009 IP
  3. travelmoth

    travelmoth Active Member

    Messages:
    153
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #3
    travelmoth, Oct 26, 2009 IP
  4. asterxnu

    asterxnu Peon

    Messages:
    198
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    asterxnu, Oct 26, 2009 IP
  5. JAY6390

    JAY6390 Peon

    Messages:
    918
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Don't think it works with upload progress however does it?
     
    JAY6390, Oct 26, 2009 IP
  6. organicCyborg

    organicCyborg Peon

    Messages:
    330
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I've mentioned this before: http://swfupload.org/

    It's a flash tool for uploading files, and can interact with PHP scripts. Check out the demos.
     
    organicCyborg, Oct 26, 2009 IP
  7. jik34

    jik34 Active Member

    Messages:
    586
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    83
    Digital Goods:
    4
    Articles:
    2
    #7
    steal that code! right click, source, copy/paste code.

    the simpliest way !

    -jik
     
    jik34, Oct 26, 2009 IP
  8. Dennis M.

    Dennis M. Active Member

    Messages:
    119
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    58
    #8
    There is no efficient way to give a "correct" progress bar with simply using PHP. Your best bet is to create a flash application, or if necessary, a Java application. The reason being is that PHP is a server-side scripting engine. That being said, it cannot output the size of tmp file (being uploaded) in comparison to its full size (thus how you would get a percentage) since it cannot access the remote PC. Flash and Java, however, are client-side programs which can access file information.

    Regards,
    Dennis M.
     
    Dennis M., Oct 26, 2009 IP
  9. xenon2010

    xenon2010 Peon

    Messages:
    237
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #9
    jquery can do this for you..
     
    xenon2010, Oct 27, 2009 IP
  10. asterxnu

    asterxnu Peon

    Messages:
    198
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Can anybody help me with jquery ,,i don`t know how to use it:-??
     
    asterxnu, Oct 27, 2009 IP