is_file() vs file_exists()
Introduction If you do not know how to use is_file() and file_exists() properly, then you will end up pulling out your hair. Here we will talk about a scenario which will clarify the usage of is_file() vs file_exists(). Case: We are trying to show the gallery images from a table which has the field: ‘imagepath’ …