Page 2 of 2
Re: Downloading From Multiple Links With Progress Bar?
Posted: Sat Mar 06, 2010 6:00 pm
by CodenStuff
Hello NoWayIn,
OK well if you download the attached file and upload the "List.php" file to the same folder containing your files and then when you run the application type in the folder URL into the textbox like:
http://www.yoursite.com/filefolder/
And it will read the output from list.php and download all the files.
Download:
NewDload.zip
Re: Downloading From Multiple Links With Progress Bar?
Posted: Sat Mar 06, 2010 7:37 pm
by NoWayIn
I'll try this new one out, thanks so much.
So I upload the List.php into the folder ) where everything will be downloaded
and I type in the file names?
Code: Select all<?php
$handle=opendir(".");
while (($file = readdir($handle))!==false) {
echo "$file|";
}
closedir($handle);
?>
Can you tell me where to place the file names or link? :P
Im not much of a PHP person
and how should it be inputed?
File 1, File 2, File 3
or
File 1
File 2
File 3
or
File 1 | File 2 | File 3 |
Re: Downloading From Multiple Links With Progress Bar?
Posted: Sat Mar 06, 2010 7:45 pm
by CodenStuff
Hello,
Oh no lol. I mean just upload "List.php" into the same folder as your files, you dont need to change anything inside it.
Then run the application from the project included in the attachment and just type the URL to your files folder into the textbox.
Re: Downloading From Multiple Links With Progress Bar?
Posted: Sat Mar 06, 2010 7:49 pm
by NoWayIn
Oh it works great!
But Im not sure what this is
Please look at the picture
It removes the progress bar and it say some other things.
and my files are small so I didnt see the progress bar go up
Re: Downloading From Multiple Links With Progress Bar?
Posted: Sat Mar 06, 2010 7:55 pm
by CodenStuff
Hello,
Not sure why it did that lol. I maybe because its downloading the php files, you could try change this line of code:
Code: Select allIf page.Split("|")(i).Length > 4 Then
Change it to this:
Code: Select allIf page.Split("|")(i).Length > 4 AndAlso Not page.Split("|")(i).Contains(".php") Then
That should stop it downloading the .php files :?
Re: Downloading From Multiple Links With Progress Bar?
Posted: Sat Mar 06, 2010 7:57 pm
by NoWayIn
Oh so thats why it was downloading php files.
Okay I will try it and reply back!
Re: Downloading From Multiple Links With Progress Bar?
Posted: Sat Mar 06, 2010 8:10 pm
by NoWayIn
Well I changed it but now its saying wrong FTP info.
I guess it's okay because you've helped me enough :P
I'll try to fix it if I can
Re: Downloading From Multiple Links With Progress Bar?
Posted: Sat Mar 06, 2010 10:21 pm
by CodenStuff
Hello NoWayIn,
I didnt change all of the code when I took the FTP stuff out. It should be easy enough to sort out ;) .
If you have problems figuring it out let me know cooll;