this possible ?

i have a directory of songs here - http://rfki.eu/foonr/th/1.The_Initial_Friends_EP_(1999)/-individual_songs/

now, i want to provide the option to download all the songs in one go without using torrents.

is there a way of providing a link in a web browser to a client computer which would then download all the files in the provided index?

im really hoping there is because i'm not up for uploading the entire index again in zipped form !

thanks
Comments
34
ask rafiki, he gave you that FTP xD
download managers have options to leech this way afaik
yeah, but my friend doesnt have a download manager... not really a computer person. so i want to keep it really simple
Parent
Just tell him to get downthemall for firefox if he's using it
Parent
please she doesnt have firefox :D
Parent
i guess if you have alot of music files, have them all in an .exe where it will exec all the songs to a folder

whats so hard to zip/rar em? aint many songs
im doing 6 albums and my upload speed is max at 38kb/s

thats why :o)
Parent
you're asking me to write php for myself?

lols you know better than anyone i am retarded with anything that isnt < br >
Parent
actually it's technically <br />

:D

you wanted to know if it was possible to be fair, it doesn't look too hard, maybe you can get someone to make it for you, I would but im currently writing a server control panel for a multigamingclan :(
Parent
just tell him to right click on each song and then click Save Link As (for firefox, might work for other browsers).
its so much effort... theres like 120 links :P
Parent
oh lol, start zipping them up then :D
Parent
download em all, upload em all...

DONE,

invite me back to what.cd aswell mate. I was inactive while i had no pc and my acc got deleted.
no invites left boyo
Parent
When you get one, boyo.

By the way, im on the way down to London to live :D
Parent
:) Have to go for a beer
Parent
is she image: img_3475d29cb23d25dbbf3551eea8f0306a ?
http://gnuwin32.sourceforge.net/packages/wget.htm
This (wget) is what I used on linux to download all the music from my desktop on the laptop (15 GB-_-). I placed a webserver like you have on the desktop and then I used wget recursivly to download all the links on the website. I think you can do this with any software that can download full websites.
so am i right in thinking i could install this on the webserver, and it would perform the task (of downloading the mp3s) for anyone on the net who was given the right link ?
Parent
wget is like a browser... a spider. It goes on a link there it looks for anyother links, it goes on them etc. (recursivly). The ends are MP3 files. After wget finishes youll have on the computer all the website structure, including the mp3 files.
I don't know if there exists a server enhancement to do this. Maybe some PHP / ASP scripts can help. I'll do some research :P.
Parent
its ok. i dont really want my friend to have to download extra programs. i just need the simplest solution possible for their point of view.

eg just either click on individual songs, or click to download the entire album
Parent
No, this is a tool used by the downloader. If you are on a linux machine it's probably already installed. But then again, you could make a php script that zipped the files on the server.
Parent
ye, this last part you mention is what i really need. are there any premade i can download that you know of?

i literally just need it to zip all the files in /randomdirectory and allowed that zip to be downloaded

thanks for your help
Parent
I didn't find what i was looking for... but it's possible to make a PHP script (I hope rfki has it enabled) that takes the folder with music, zips it and then sends it to the client.
Another option would be to connect using SSH (secure shell) to the server and compress it on the server, so you don't have to upload anything. Rfki can help you more with that i guess.
Parent
like i said to lagger, do you know if such a script is premade and downloadable?
Parent
If there is one... I can't find it :). I could make one though...

<?php
// local file that should be send to the client
$local_file = 'music.zip';

// Make a zip file
$cmd = `zip -r $local_file /foonr/th/*`;

// filename that the user gets as default
$download_file = 'foonr-music.zip';
 
// set the download rate limit (=> 20,5 kb/s)
$download_rate = 20.5;
if(file_exists($local_file) && is_file($local_file)) {
// send headers
header('Cache-control: private');
header('Content-Type: application/octet-stream');
header('Content-Length: '.filesize($local_file));
header('Content-Disposition: filename='.$download_file);
 
// flush content
flush();
// open file stream
$file = fopen($local_file, "r");
while(!feof($file)) {
 
// send the current file part to the browser
print fread($file, round($download_rate * 1024));
 
// flush the content to the browser
flush();
}
 
// close file stream
fclose($file);}
else {
die('Error: The file '.$local_file.' does not exist!');
}
?>

I'm not sure it will work... but you may give it a try :).
Parent
i'll try, thanks a lot !
Parent
it might be im not using it properly..

eg i put the php script in dl.php which is linked to 'download whole album'
that is then supposed to zip /-individual_songs

but maybe this isnt how it should be used ?
Parent
this one is designed to download every file inside /foonr/th/*, it could be modified to grab the $_SERVER['PHP_SELF']; to detect which folder it is in and thus grab the correct songs
Parent
use wget to download then its np!
lol and how will it look like? on client's pc i mean
120 download windows in 1 sec or what? Oo
Back to top