SitePoint Sponsor

User Tag List

Page 1 of 2 12 LastLast
Results 1 to 25 of 41
  1. #1
    SitePoint Zealot spybreak's Avatar
    Join Date
    Apr 2003
    Location
    Germany
    Posts
    151
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Post Petition: upload progress bar. Please sign and spread the word

    I hope it's ok to post this here.

    I created this petition because I feel that we need a function in PHP that tells us about the status of a file upload.

    I also created a banner for this petition. I'd be grateful if you posted it on other PHP forums, to spread the word. I'll contact the PHP team as soon as we have a considerable amount of people that signed this petition.


    http://www.petitiononline.com/PHPUpSt/petition.html

    Please sign if you want such a feature too. Click on the banner




    Thanks for your support,

    Robert

  2. #2
    SitePoint Guru okrogius's Avatar
    Join Date
    Mar 2002
    Location
    US
    Posts
    622
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Such a petition is utterly pointless. It's not PHP's job to provide such client side things. W3C? maybe, but they already have xform improvements. Finally you can just use Java.

  3. #3
    SitePoint Enthusiast Virakor's Avatar
    Join Date
    Mar 2003
    Location
    Kentucky
    Posts
    80
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    PHP is also open source and if you wanted to feature find a coder to code it in for you. I believe PHP is written in C/C++
    Surrix.net: Tech help site

  4. #4
    SitePoint Zealot spybreak's Avatar
    Join Date
    Apr 2003
    Location
    Germany
    Posts
    151
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Finally you can just use Java.
    Then I could just as well use Perl. That's not the point.

    PHP is also open source and if you wanted to feature find a coder to code it in for you. I believe PHP is written in C/C++
    There are alredy two patches out that add that functionality. The problem is lots of people are on shared webhosts where it's just not possible to tweak PHP.

    Does anyone support this idea? Looks like I'm alone now. I read several threads across the web that asked for such a solution.

  5. #5
    SitePoint Enthusiast
    Join Date
    Aug 2004
    Location
    Reykjavík, Iceland
    Posts
    66
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I agree with okrogius, it would be pointless. However, I will sign the competition for support, because of course I am not going to prevent more feature requests, that would also be pointless. So you get my vote, but bear in mind that not many people will give a darn (I hope I can say that) about having a progress bar in the language.
    Friðrik Már Jónsson
    Student & Web Designer

  6. #6
    SitePoint Zealot spybreak's Avatar
    Join Date
    Apr 2003
    Location
    Germany
    Posts
    151
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks eZtro. Doesn't look as if much people care though, just as you said.

  7. #7
    SitePoint Zealot bronze trophy
    Join Date
    Jun 2004
    Location
    Stockholm, Sweden
    Posts
    148
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    How would it work?
    PHP is server-side, so I don't see how it would update a clientside progressbar. In a smart way that is.
    If there is a way to overcome the suffering, there is no need to worry; if there is no way to overcome the suffering, there is no point to worry.
    - Shantideva

  8. #8
    SitePoint Zealot spybreak's Avatar
    Join Date
    Apr 2003
    Location
    Germany
    Posts
    151
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Let's forget this.

  9. #9
    SitePoint Zealot bronze trophy
    Join Date
    Jun 2004
    Location
    Stockholm, Sweden
    Posts
    148
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm just curious, you mentioned patches that provided this functionality, I'm interested in how they work. If PHP could be made to do client-side coding as well, I'd be in heaven.
    If there is a way to overcome the suffering, there is no need to worry; if there is no way to overcome the suffering, there is no point to worry.
    - Shantideva

  10. #10
    SitePoint Evangelist Andrewaclt's Avatar
    Join Date
    Dec 2003
    Location
    Raleigh, NC
    Posts
    535
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If PHP could be made to do client-side coding as well, I'd be in heaven.
    php-GTK?

  11. #11
    SitePoint Zealot bronze trophy
    Join Date
    Jun 2004
    Location
    Stockholm, Sweden
    Posts
    148
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Php-GTK is not clientside. Well, it is, but it's not webbased. The client needs PHP installed and it runs like any other application on your desktop, clientside webcode is stuff like JavaScript.

    If PHP does that... yum.
    If there is a way to overcome the suffering, there is no need to worry; if there is no way to overcome the suffering, there is no point to worry.
    - Shantideva

  12. #12
    SitePoint Zealot spybreak's Avatar
    Join Date
    Apr 2003
    Location
    Germany
    Posts
    151
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What the patches do is, they give you a function that allows you to query the status of a file upload. Having that, you can construct a progress bar easily using JavaScript or something. You could for example open a small popup as soon as the user submits the form and have a progress bar in there.

  13. #13
    SitePoint Wizard silver trophy someonewhois's Avatar
    Join Date
    Jan 2002
    Location
    Canada
    Posts
    6,364
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can't do clientside from the server with PHP - 2 options: Javascript, or XUL.

    I could write something that does that easily... stop whining, just make it for yourself.

    D00D SIGNZ0R MY PETITIONZ0R, I R0X0R YOUR B0X0RS!!!!1one
    http://www.petitiononline.com/whiners0/petition.html

  14. #14
    SitePoint Zealot spybreak's Avatar
    Join Date
    Apr 2003
    Location
    Germany
    Posts
    151
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I could write something that does that easily... stop whining, just make it for yourself.
    Ok, code me an upload script that shows me how much bytes have been, how much still have to be uploaded in PHP, without any hacks to the PHP engine, and I'll give you 200 bucks.

    You don't even understand the problem

  15. #15
    SitePoint Wizard silver trophy someonewhois's Avatar
    Join Date
    Jan 2002
    Location
    Canada
    Posts
    6,364
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Erm, if you need something the same as that banner that's not that hard to do...

  16. #16
    SitePoint Zealot spybreak's Avatar
    Join Date
    Apr 2003
    Location
    Germany
    Posts
    151
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'll quote myself
    I created this petition because I feel that we need a function in PHP that tells us about the status of a file upload.
    and explain it to you again slowly.

    In PHP there's no way to know how far a file upload has progressed. If there was a function that allowed me to determine how much bytes have been received alredy, I could do an accurate (not pseudo) progress bar using some client side technology, either JavaScript or something else.

    Oh and thank you for being so nice.

  17. #17
    SitePoint Wizard silver trophy someonewhois's Avatar
    Join Date
    Jan 2002
    Location
    Canada
    Posts
    6,364
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Is there ANYTHING in PHP that lets you talk to JavaScript? Not that I know of... to do what you want to do you would simply have to accept the form upload protocol yourself, it'd take a bit of work but it's possible.

  18. #18
    SitePoint Guru okrogius's Avatar
    Join Date
    Mar 2002
    Location
    US
    Posts
    622
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by spybreak
    Then I could just as well use Perl. That's not the point.
    That is the point. PHP is server side, a Java applet is client side.

  19. #19
    SitePoint Zealot spybreak's Avatar
    Join Date
    Apr 2003
    Location
    Germany
    Posts
    151
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You could just aswell refresh a php page every second and output the progress bar using PHP. That's not the problem, I'm repeating myself. The petition is for a function that provides me with upload status information.

  20. #20
    SitePoint Zealot spybreak's Avatar
    Join Date
    Apr 2003
    Location
    Germany
    Posts
    151
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by okrogius
    That is the point. PHP is server side, a Java applet is client side.
    Ok, accepted. But it's just not acceptable for what I need. Then my users would need to have the Java Virtual machine installed.

  21. #21
    SitePoint Wizard silver trophy someonewhois's Avatar
    Join Date
    Jan 2002
    Location
    Canada
    Posts
    6,364
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You could just aswell refresh a php page every second and output the progress bar using PHP. That's not the problem, I'm repeating myself. The petition is for a function that provides me with upload status information.

    Not accurately. PHP doesn't tell you the status at all. You have to parse the protocol yourself, simple as that.

  22. #22
    SitePoint Zealot spybreak's Avatar
    Join Date
    Apr 2003
    Location
    Germany
    Posts
    151
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    PHP doesn't tell you the status at all.
    Isn't that what I'm asking for? Seems like you're getting it finally.

  23. #23
    SitePoint Zealot bronze trophy
    Join Date
    Jun 2004
    Location
    Stockholm, Sweden
    Posts
    148
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You're still not getting it though. What do you want to do server-side with that information? The only way of getting PHP to display the information (or getting the information from PHP using clientside scripting) is by refreshing the page continuously.
    If there is a way to overcome the suffering, there is no need to worry; if there is no way to overcome the suffering, there is no point to worry.
    - Shantideva

  24. #24
    SitePoint Zealot spybreak's Avatar
    Join Date
    Apr 2003
    Location
    Germany
    Posts
    151
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You know, I'm doing this for clients. I don't need the perfect ideal solution, I need a solution that works. I heard Opera displays how much has been uploaded. However IE doesn't, so I have to find another solution. Just like you I wish the world was ideal, was fully CSS compliant, no wars etc… And this would be an acceptable solution in my opinion. What's wrong about letting a PHP script now the progress of a file upload.

  25. #25
    SitePoint Wizard silver trophy someonewhois's Avatar
    Join Date
    Jan 2002
    Location
    Canada
    Posts
    6,364
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It's possible, you just have to write an upload server (running on port 8080 or something), and you submit your forms to http://127.0.0.1:8080 and parse the POST request yourself. Do you understand?


Bookmarks

Posting Permissions

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