Page 1 of 1

build progrssbar while downloading from ftp

Posted: Wed Feb 02, 2011 4:50 pm
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 =]

Re: build progrssbar while downloading from ftp

Posted: Wed Feb 02, 2011 5:13 pm
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

Re: build progrssbar while downloading from ftp

Posted: Thu Feb 03, 2011 7:23 am
by fishown
thank you,
but i ment FTP uploader script with progressbar....