Results 1 to 14 of 14
  1. #1
    Join Date
    Oct 2002
    Posts
    277

    Php progress bar

    Im having a script coded (in php), and one of its sections allows users to submit large video files. I was thinking it might be nice to include some sort of a progress bar so people can see that its doing something.

    I stumbled upon this:
    http://hotscripts.com/Detailed/25027.html

    But its far too bulky, since it opens in a new window, and much more complicated than it needs to be. Does anyone know an alternative solution?

  2. #2
    Join Date
    Jul 2003
    Location
    Kuwait
    Posts
    5,104
    Try HTML_Progress over at PEAR.

  3. #3
    I thought smarty had a way of doing progress bars as well?

  4. #4
    Join Date
    Jun 2004
    Posts
    112
    What about the XMLHTTP Request Object?
    ...it is client side technology though :/

  5. #5
    Join Date
    Oct 2002
    Location
    Canada
    Posts
    3,103

    Re: Php progress bar

    Originally posted by yegorpb
    Im having a script coded (in php), and one of its sections allows users to submit large video files. I was thinking it might be nice to include some sort of a progress bar so people can see that its doing something.

    I stumbled upon this:
    http://hotscripts.com/Detailed/25027.html

    But its far too bulky, since it opens in a new window, and much more complicated than it needs to be. Does anyone know an alternative solution?

    Mega Upload is just a proof of concept and shows the best way to do upload progress bar with PHP. It does not have to be bulky as it seems, you could rewrite some of the perl code to PHP (except the part that receives the file) and you could open it in inline frame rather then popup if you really want to.

  6. #6
    Join Date
    Oct 2002
    Posts
    277
    The thing about that script, is that it only uploads to the server its hosted on. MY uploader uploads files to another server, which makes things very difficult.

  7. #7
    Join Date
    Mar 2004
    Posts
    1,303
    use javascript then - it is not a real progress bar. just some bar indicating it's still sending your file. There is no way to have a real proress bar if you want to upload to another server where the script is on other server.

  8. #8
    Join Date
    Oct 2002
    Posts
    277
    Thats what I was thinking.

  9. #9
    Join Date
    Jun 2004
    Posts
    112
    Once again, won't the XMLHTTP Request Object, more or less, sort this problem out for you?

  10. #10
    Join Date
    Oct 2002
    Posts
    277
    I don't believe im familiar with that...

  11. #11
    Originally posted by yegorpb
    I don't believe im familiar with that...
    I would post some links to some excellent tutorials for AJAX, but I cannot (for some really odd reason).

    Do a google search for "ajax tutorial xml"

    And click on link 2B. (XML.com: Very Dynamic Web Interfaces)

  12. #12
    Join Date
    Jun 2004
    Posts
    112
    A google search would be where I would get my links from but here's a particularly favourite link of mine:
    http://www.fiftyfoureleven.com/resou...quest/examples

  13. #13
    If you want to transfer variables and such to and from Javascript and PHP, you can use Aardvark which is a lightweight Ajax engine for doing exactly that.. http://sourceforge.net/projects/aardvark

  14. #14
    Join Date
    Jun 2004
    Posts
    112
    Originally posted by flush()
    If you want to transfer variables and such to and from Javascript and PHP, you can use Aardvark which is a lightweight Ajax engine for doing exactly that.. http://sourceforge.net/projects/aardvark
    I've heard JSON is pretty good at that too:
    http://www.crockford.com/JSON/index.html

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •