Delivering the best Add-Ons in more than 37 languages.

中文(简体), English, हिन्दी/हिंदी, Español/Castellano, العربية, Русский язык, Français, 中文 (台灣), বাংলা, Bahasa Indonesia, اردو, Português, Deutsch, Bahasa Melayu (بهاس ملايو‎), 日本語 (にほんご), فارسی, Italiano, తెలుగు, Türkçe, ગુજરાતી, Język polski/polszczyzna, Tiếng Việt, ಕನ್ನಡ, Українська мова, ไทย
PHP Scripts / Miscellaneous

File Explorer Class

— Add-On to

Subscribe to our feed to stay up to date!

New! Follow us as you want it!

File Explorer Class - CodeCanyon Item for Sale


Ad: Bluehost hosting

A. Description

If you already worked with files and directories in PHP then you will know that the default copy, delete(unlink) functions are ok to use on files but when you want to delete or copy a directory with content in it, it’s an whole other story. This class gives you the ability to easily delete, create, move, copy files and directories with content.

B. Features

  • Copy files and folders
  • Move files and folders
  • Rename files and folders
  • Delete files and folders
  • Create files and folders
  • Read and write a file
  • Listing the content of a directory
  • Get file extension

Easy to use

To big advantage of this class is that is works recursive and that it works the same for directories and files.

If you for example want to delete a directory and all it’s content you can do it like this.

include("File.php"); $File = new Explorer(); $File->SetPath('c:/test/sitebase'); $File->Delete(); 

If you want to delete a file you can do this:

include("File.php"); $File = new Explorer(); $File->SetPath('c:/test/sitebase.txt'); $File->Delete(); 

To copy a directory and it’s content you do this:

include("File.php"); $File = new Explorer(); $File->SetPath('c:/test/sitebase'); $File->Copy('c:/test/sitebase_backup'); 

Other components in this categoryAll components of this author
CommentsFrequently asked questions and answers


5 February 10

Last Update:

Compatible Browsers:
Firefox, IE6, IE7, IE8, Opera, Safari

Files Included:

Software Framework:

Software Version:
PHP 5.x


eCommerce, eCommerce, All Items, class, copy, delete, extension, files, listing, move, php, rename