Suppose there is a site where we are uploading images. Now, when we have to display the album of that particular logged-in user. What we can do is:
- We save the path of that image in the database and retrieve the image
- Save only the name(unique) of the image and use fopen() because we save all the uploaded images in a single folder
Now my question is:
What are the various options to retrieve that file instead of fopen()? Meaning, is there anything else that is faster than this?
You shouldn’t need to use
fopento display a gallery. Why can’t you just show the images like that:?