A force-download script can give you more control over a file download than you would have providing a direct link. Using a force-download script, you can:
Download image file
We can check the file is exist or not in the folder using file_exists function
Here is a simple code to check the presence of the file
PHP directory listing
Some times we have to display the list of all files in a directory.We can do this with the help of php function readdir(). The code to display all the files is ...