build progrssbar while downloading from ftp

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
fishown
Forum Commoner
Posts: 33
Joined: Sat May 12, 2007 5:35 pm

build progrssbar while downloading from ftp

Post by fishown »

Im haveing a problem building an progress bar to my php download from ftp script,
every thing i try tarns as a huge mistake,
I dont know if it posible... if some one can give any directions it will be great.

*Im downloading from remote FTP to the FTP on my server of course.
(and i know i supose to comaib php with java to do it =[)

thank you =]
Neilos
Forum Contributor
Posts: 179
Joined: Fri Nov 19, 2010 2:07 am

Re: build progrssbar while downloading from ftp

Post by Neilos »

I don't believe that this can be done purely in php. The problem is that php is parsed every time a request is sent to the server, which means lots of refreshing as php is only run server side, so in order to get the progress you require a refresh.

However, it is quite simple to use AJAX/jQuery.

Here is an example;
http://www.webdavsystem.com/server/docu ... ogress_bar
fishown
Forum Commoner
Posts: 33
Joined: Sat May 12, 2007 5:35 pm

Re: build progrssbar while downloading from ftp

Post by fishown »

thank you,
but i ment FTP uploader script with progressbar....
Post Reply