Page 1 of 1

files that user can download

Posted: Thu Oct 06, 2005 2:23 pm
by orangeapple
Hi !

I would like to have xls files on a directory, on the server that user can download if they want. How can I make the links for downloading appear on a php page ?

Basically, php should search for the different xls files in a directory and echo their link for download on the page, is that possible ?
Thanks for your help !

Posted: Thu Oct 06, 2005 4:18 pm
by Burrito
Moved To Code

Posted: Thu Oct 06, 2005 4:19 pm
by Burrito
to get a directory listing, use either opendir() or glob().

then just loop over the results and echo out an anchor tag with a link to your file...