Current location: Hot Scripts Forums » Programming Languages » PHP » dynamic uploader (progress bar)


dynamic uploader (progress bar)

Reply
  #1 (permalink)  
Old 06-27-03, 06:45 AM
[PL]Greg [PL]Greg is offline
New Member
 
Join Date: Jun 2003
Location: Szczecin
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
dynamic uploader (progress bar)

i need dynamic php uploader.
i'd like to do some kind of dynamic progress bar while uploading file (need to know how many bytes of the file was send). is this possible with php ?

maybe there are some scripts (php, javascripts or java) ?

Last edited by [PL]Greg; 06-27-03 at 06:53 AM.
Reply With Quote
  #2 (permalink)  
Old 06-27-03, 08:46 PM
nd2 nd2 is offline
Wannabe Coder
 
Join Date: Jun 2003
Posts: 128
Thanks: 0
Thanked 0 Times in 0 Posts
ive seen on astalavista that they use code to estimate the load time of a page, this might work for your upload script.

but as it's most likly theres you may not be abble to use it.
__________________
IonCMS (Coming Soon.)
http://ioncms.com
--
Ncaster (Free php/mysql cms)
http://ncaster.cjb.net
Reply With Quote
  #3 (permalink)  
Old 06-27-03, 09:11 PM
amailer's Avatar
amailer amailer is offline
_-*^# PHP Master #^*-_
 
Join Date: Jun 2003
Location: Canada
Posts: 237
Thanks: 0
Thanked 0 Times in 0 Posts
its better to use java for this, since with php you will be refreshing the page everytime
__________________
Amailer - Spam/Advertise/Have fun
Reply With Quote
  #4 (permalink)  
Old 06-28-03, 08:19 PM
darkcarnival's Avatar
darkcarnival darkcarnival is offline
PHP/MySQL coder
 
Join Date: Jun 2003
Posts: 939
Thanks: 0
Thanked 0 Times in 0 Posts
actually i believe i seen a javascript that did this. its at http://javascript.internet.com/page-...load-page.html
Reply With Quote
  #5 (permalink)  
Old 06-29-03, 03:58 PM
TheGreatOne's Avatar
TheGreatOne TheGreatOne is offline
Wannabe Coder
 
Join Date: Jun 2003
Location: Pc Desk
Posts: 114
Thanks: 0
Thanked 0 Times in 0 Posts
__________________
## Like Music ?? ##

~~ http://www.theenergyradio.com ~~
Reply With Quote
  #6 (permalink)  
Old 06-30-03, 03:19 AM
gizmoitus's Avatar
gizmoitus gizmoitus is offline
Niamh's Daddy
 
Join Date: Jun 2003
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
This is not a fault of php, but there simply is no such thing. You just can not add a persistent connection to http where one doesn't exist. Webservers open connections to the client (the browser) fulfill the request, and close the connection.

Any connection requires either some sort of trickery like page refresh, or an embedded object like a java applet or activex control.

The bottom line is that the only way to provide anything other than an estimate of status, would require some type of low level hooks into the webserver itself.
Reply With Quote
  #7 (permalink)  
Old 06-30-03, 04:24 AM
Stefan's Avatar
Stefan Stefan is offline
Junior Code Guru
 
Join Date: Jun 2003
Location: Utrecht, The Netherlands
Posts: 599
Thanks: 0
Thanked 0 Times in 0 Posts
as said above, this cant be done with php. possibly a clientside language would be able to do this, but a serverside language will not work since it is serverside, and not on the clientside.
Reply With Quote
  #8 (permalink)  
Old 07-02-03, 06:35 AM
Jerome Jerome is offline
Wannabe Coder
 
Join Date: Jun 2003
Location: On Earth
Posts: 177
Thanks: 0
Thanked 0 Times in 0 Posts
For PHP , i haven't seen one yet ... i don't think is possible as i have been also trying to compile it ...

But for JAva , it will be possible ... but the setback is , it will load very slow ... that why ...
__________________
Support me by clicking ads
@ http://atomise.blogspot.com
CHEERS
Reply With Quote
  #9 (permalink)  
Old 07-02-03, 12:07 PM
[PL]Greg [PL]Greg is offline
New Member
 
Join Date: Jun 2003
Location: Szczecin
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
ok, thx for the feedback
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Centering Layers on Dynamic Background mark4man JavaScript 0 09-12-03 08:16 PM
Image uploader script *HELP* macj1326 PHP 4 09-08-03 02:23 AM
dynamic web pages using the checkbox component oasp PHP 6 08-12-03 02:54 PM
Form Processors with image uploader XPerties Job Offers & Assistance 6 06-27-03 03:22 PM
Dynamic color tables frik PHP 6 06-15-03 11:58 AM


All times are GMT -5. The time now is 08:04 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.