(PHP 5, PHP 7). scandir — List files and directories inside the specified path $context ]] ) : array. Returns an array of files and directories from the directory . In this tutorial you will learn how to force download a file using PHP. of file is stored in a public accessible folder, you can just create a hyperlink pointing to that file, Image Gallery