well
i am downloading images from a php gallery
that contain 3 sizes for the images meduim small and large
linked in the same page but
each is in a unique folder
/img_s/
/img_m/
/img_l/
however these folders aren't in the main link
the link is follows
http://website/database/showimg.php?Id=10&size=L&page=1
http://website/database/showimg.php?Id=10&size=M&page=1
http://website/database/showimg.php?Id=10&size=S&page=1
the large is directed to :
http://website/database/10/img_L/001.jpg
the meduim :
http://website/database/10/img_M/001.jpg
the small :
http://website/database/10/img_S/001.jpg
so how to exclude folders so i get what is exactly meduim or small or large
plz help