Sublime directory Surf the web anonymous Pagerank Monitor


How to i monitor amount of upload using PHP?

pranavbhat
Sat 24 November 2007, 10:45 am GMT +0100
hi,
I have written a script that uses PHP FTP to upload files from users to our web server. However the problem is that I Want to show what percentage of file has been uploaded? Please tell me how do i do this using PHP? I have read somewhere that this is not possible using PHP? Is this true? Experts please give your suggestions!!

Cheers!!

olaf
Sat 24 November 2007, 05:57 pm GMT +0100
you can't because the php upload is 100% serverside.

the only way I know is using java


pranavbhat
Sat 24 November 2007, 08:50 pm GMT +0100
hmm....so that means i got to create a applet is it?? I just read somewhere that it is possible using php_perl...is it true??

aaron_s
Thu 3 January 2008, 01:55 am GMT +0100
The best I could suggest would be to do a filestat on your FTP file, determine the size and then know the speed of your connection from server to ftp, and do a time based %.  Of course, you'd have to put some notes about it being approximate - and be very lenient with your initial calculation. 

You might also try searching Pear for progress2.

Archive for SMF v1.00 by N.P. Valid XHTML 1.0 Transitional