Page 1 of 1

download files

Posted: Sun Dec 14, 2008 11:48 am
by dourvas
hello,
i have an upload script that a user can upload files to a directory. i also have a log file that saves the upoload data.

log file:
December 14, 2008/ 07:18:44pm from=Dourvas-little.txt- uploaded by 127.0.0.1
December 14, 2008/ 07:18:53pm From=Dourvas-z.doc- uploaded by 127.0.0.1

Now i need a download script in order to some other users can direct download all the contents of the upload directory
i want to use some certain data from the logfile

for example in the download page i want this kind of info:

in December 14, 2008/ 07:18:44pm Dourvas uploaded little.txt [download link]

i have some thoughts but i find it very difficult task. do u have any ideas?

Re: download files

Posted: Sun Dec 14, 2008 12:58 pm
by jaoudestudios
To force the download of a file, you need to send the right headers.

This may help...
http://www.forum.jaoudestudios.com/view ... 5d7e599b0f