I need a php file with the ability to download multiple images per se from a folder on my server, with an unique ID per image.
e.g.
I have an image on my server: /home/example/public_html/multipleimage/2.png
And I want to download that image through the unique php file: http://example.com/file.php
I would type the following url: http://example.com/file.php?id=2 And the browser would have to return the image.
But... how should be the php file? Can it be done without going through a database?
Thanks.