Topic: How to i monitor amount of upload using PHP? (Read 437 times)
Google dot what?
Posts: 2
16 credits Members referred : 0
« on: Nov 24, 2007, 11:45:06 AM »
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!!
Global Moderator Community Supporter?
Jedai Sword Master
Gender:
Posts: 6309
38674 credits Members referred : 374
It's time to use PHP5!
« Reply #1 on: Nov 24, 2007, 06:57:44 PM »
you can't because the php upload is 100% serverside.
Google dot what?
Posts: 2
16 credits Members referred : 0
« Reply #2 on: Nov 24, 2007, 09:50:46 PM »
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??
Community Supporter?
Hunky Junky Monky Man!
Gender:
Posts: 68
436 credits Members referred : 0
Schwa?
« Reply #3 on: Jan 03, 2008, 02:55:49 AM »
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.
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=7397