PHP Directory Viewer - List All Files In A Directory
close
PHP Directory Viewer - List All Files In A Directory

PHP Directory Viewer - List All Files In A Directory

PHP Directory Viewer - List All Files In A Directory

This is a simple PHP script to list all files in a directory basically this is called PHP Directory Viewer.

This simple PHP project will list all the files and folders of specified path. You can add this directory viewer to your website to list different files of your website. This is responsive and beautiful directory viewer which will blow up your mind.

Preview/Demo:

This is the preview of this PHP Directory Viewer you can see it below. It seems like this when it is live.
PHP Directory Viewer - List All Files In A Directory

I haven't provided the source code of this because it was lengthy and was affecting my website page that's why I was unable to provide the source code but don't worry about the source code I have included the project files you can download the project file from the link below and have fun.

Use your localhost server to see this directive your live.

This directory viewer is having two themes light and Dark whatever thing you like you can change that in the index.php file.

Now all the settings provided below will be founded in index.php file.

To change the theme replace light in $color = "light";. The acceptable values are light and dark.

Ignore Files:

You want to ignore any file and you don't want to be listed it in this directory viewer you can add that file name here in the ignore file list $ignore_file_list = array( ".htaccess", "Thumbs.db", ".DS_Store", "index.php" );

You can also ignore the files using extension just add the extension name in ignore extension list here $ignore_ext_list = array( );

Sort Files:

You can also sort your files in different ways by default the files are sorted in ascending order and by name you can change the sort style of files and folders by specifying the suit style insert by variable here $sort_by = "name_asc";. Specified values for sorting styles are name_asc, name_desc, date_asc, date_desc you can choose any.

Toggle Sub-folders:

If you want to set the functionality of Toggle sub-folders you can also do that by default it is also added before but you can customise it by simply replacing variable value to true or false here. $toggle_sub_folders = true;.

More Settings:

You can also ignore the empty folders and this PHP Directory Viewer is having many more other features you can download the project files from the link below and see all the setting in it description of all the setting is provided in the code using comments you can see them.

Download PHP Directory Viewer - List All Files In A Directory


PHP Directory Viewer.zip
File Size 58 KB
Click the download button above and your download will be started in few ( 10 ) seconds. If your download does not start automatically then click Download Started Button Above to download it manually.

Disqus Codes

No comments

Notifications

Disqus Logo