Topic awaiting preservation: File Upload (Page 1 of 1) |
|
---|---|
Obsessive-Compulsive (I) Inmate From: Jakarta |
posted 09-12-2003 14:32
Hi I want to ask something about uploading file in PHP, sorry if this question has already asked before |
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
posted 09-12-2003 15:19
Lauw_HG: Welcome |
Paranoid (IV) Inmate From: New Jersey, USA |
posted 09-12-2003 18:16
Hi Lauw_HG |
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
posted 09-12-2003 20:33
neglecting of course the time difference between the client and the server, which usually is 'huge', for some value of huge |
Bipolar (III) Inmate From: Raleigh, NC |
posted 09-12-2003 23:45
*bookmark* |
Paranoid (IV) Inmate From: New Jersey, USA |
posted 09-13-2003 01:23
Thanks for throwing that in TP, I didn't even consider that when I wrote the post. |
Obsessive-Compulsive (I) Inmate From: Jakarta |
posted 09-13-2003 04:30
emperor : the links are not functioning but thanks to remind me |
Paranoid (IV) Inmate From: Mexico |
posted 09-13-2003 04:54
measure the time of the execution? = |
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
posted 09-13-2003 09:22
what you could do is get the time the user downloaded the uploading html page... that's on your server clock, but it's gonna be varying quite a bit. or maybe a hidden frame that get's posted t othe server as well, which then can be used to measure the time... |
Maniac (V) Mad Scientist From: :morF |
posted 09-13-2003 11:54
Well...the page which the form is loading to won't load until the file has finihed uploading. Why not send one timestamp to the server when the user clicks the uplaod button, then send a second one when it loads the page the form is linked to and simply do a time comparison between them to see the time difference? |
Obsessive-Compulsive (I) Inmate From: Jakarta |
posted 09-16-2003 03:24
Skaarj : can you tell me how to send a timestamp to the server ? is it like sending a date ? i've used it before, when a user click upload button and it will send the date at the client to the server. and can you explain it to me about the last part of your post about the time difference? i don't understand too much... |
Maniac (V) Mad Scientist From: :morF |
posted 09-16-2003 16:12
Well...that's all javascript stuff..things of which I know almost nothing about...one of the other javascript guys here'd have to tell you. But basically when the user clicks the 'upload' button, a unix timestamp would be generated (which meansures the current time in seconds since the UNIX epoch). Then, you'd add something into (I think) the head area of your target page in the form (you know...the page you put into 'action=') telling it onPageLoad send another time stamp, then you'd grab both of those with a script, subtract the first one form the second one...convert it to something readable to the average person and output it. |