Hello every one,

I prevent my image directory by using .htaccess file by :

Code:
 Options -Indexes
but when I tried to display image from this directory it's not display

Code:
echo '<img src="img/?????.jpg" />';
My question is .. how prevent directory an files inside it and at the same time I could display image .

Thanks