this possible ?
•
17 Jun 2008, 22:09
•
Journals
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
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
whats so hard to zip/rar em? aint many songs
thats why :o)
http://uk2.php.net/manual/en/function.ziparchive-addfile.php
lols you know better than anyone i am retarded with anything that isnt < 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 :(
DONE,
invite me back to what.cd aswell mate. I was inactive while i had no pc and my acc got deleted.
By the way, im on the way down to London to live :D
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.
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.
eg just either click on individual songs, or click to download the entire album
i literally just need it to zip all the files in /randomdirectory and allowed that zip to be downloaded
thanks for your help
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.
<?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 :).
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 ?
120 download windows in 1 sec or what? Oo