By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,946 Members | 741 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,946 IT Pros & Developers. It's quick & easy.

directory not show in website

P: 57
i have some file which contain in directory(download).
i link some file with this directory.

for example:
i visit http://websitename.com/download/a.pdf
its show. but when i type http://websitename.com/download in addressbar then its go to this link http://websitename.com/ don't show download directory and its contain files.

please help me how to do thsi

thanks
Dec 1 '11 #1
Share this Question
Share on Google+
3 Replies


100+
P: 155
it's probably security problem.

it can be .htaccsee to take you back to the default index.php if he cannot find any thing, or directory permission is not allowing you to see the content of the directory.

you should echo the file path in a loop if there is more files to download.

hope it helps.
Dec 1 '11 #2

omerbutt
100+
P: 638
my be directory listing is denied and then redirected towards he home page
regards ,
Omer Aslam
Dec 2 '11 #3

100+
P: 1,059
agreed with Omerbutt and Canabatz, showing directory listing is not a very good idea, it can create security hole.

you better write a script and show the list in a technical way so that user cannot see from what location you are downloading
Dec 2 '11 #4

Post your reply

Sign in to post your reply or Sign up for a free account.