Search code examples
phpimagefile-exists

Check whether an image file exists in a directory or not using PHP


I have image files in a directory which have downloaded from several resources.

If I have the name of an image, how can I check its existence using PHP?


Solution

  • file_exists()