SitePoint Sponsor |
|
User Tag List
Results 1 to 25 of 41
-
Aug 1, 2004, 11:06 #1
- Join Date
- Apr 2003
- Location
- Germany
- Posts
- 151
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
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
-
Aug 1, 2004, 11:11 #2
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.
-
Aug 1, 2004, 11:46 #3
- 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
-
Aug 1, 2004, 12:10 #4
- Join Date
- Apr 2003
- Location
- Germany
- Posts
- 151
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Finally you can just use Java.
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++
Does anyone support this idea? Looks like I'm alone now. I read several threads across the web that asked for such a solution.
-
Aug 1, 2004, 12:24 #5
- 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
-
Aug 2, 2004, 03:26 #6
- 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.
-
Aug 2, 2004, 04:07 #7
- 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
-
Aug 2, 2004, 04:20 #8
- Join Date
- Apr 2003
- Location
- Germany
- Posts
- 151
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Let's forget this.
-
Aug 2, 2004, 04:40 #9
- 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
-
Aug 2, 2004, 05:35 #10
- 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.
-
Aug 2, 2004, 05:40 #11
- 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
-
Aug 2, 2004, 08:00 #12
- 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.
-
Aug 2, 2004, 08:02 #13
- 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- Nathan
-
Aug 2, 2004, 09:03 #14
- 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.
You don't even understand the problem
-
Aug 2, 2004, 09:11 #15
- 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...
- Nathan
-
Aug 2, 2004, 09:17 #16
- 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.
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.
-
Aug 2, 2004, 09:22 #17
- 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.
- Nathan
-
Aug 2, 2004, 09:33 #18
Originally Posted by spybreak
-
Aug 2, 2004, 09:35 #19
- 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.
-
Aug 2, 2004, 09:37 #20
- Join Date
- Apr 2003
- Location
- Germany
- Posts
- 151
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by okrogius
-
Aug 2, 2004, 09:38 #21
- 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.- Nathan
-
Aug 2, 2004, 09:52 #22
- 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.
-
Aug 2, 2004, 09:57 #23
- 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
-
Aug 2, 2004, 10:03 #24
- 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.
-
Aug 2, 2004, 10:10 #25
- 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?
- Nathan
Bookmarks