downloading a file from a web directory

FYildirim

New Member
i have a form which allows the user to upload some files to a folder.i've edit the .htaccess file in that directory to protect this folder from allowing the unwanted visitors to download the contents manually by typing the full urlex:http://www.bkabkabka.com/a/b/c/document.pdfand this is the .htaccess data\[code\]Options All -Indexes<FilesMatch "\.(htaccess|doc|pdf|docx)$"> Order Allow,Deny Deny from all\[/code\]i have another administration page which allows the responsible guy from our side to download the files by filtering them to anything he want and then click on a html link to normally download the files.ex:\[code\]id name filename1 aaaaa --> filename1 <-- this is href link which contains for example http://www.bkabkabka.com/a/b/c/2.doc\[/code\]the problem is that the htaccess modification is applying globaly and i want to create like a username and password to this folder and then use PHP code to connect to this folder and be able to download the files normally.how can i do that?thank you.
 
Back
Top