CodeCanyon

File Explorer Class

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'); 

You must sign in or sign up to purchase this item.

$4Regular Licence

$4

Regular Licence a website (commercial, personal, client), or intranet site project - Details

$20Extended Licence

$20

Extended Licence a website template for sale (including on ThemeForest or ActiveDen) - Details

76 Purchases 19 Comments

Buyer Rating
12345 ( 13 ratings )
Sitebase

Sitebase

  • Has been a member for 2-3 years
  • Won a Competition
  • Author had a File in an Envato Bundle
  • Envato Staff
  • Reviewer
  • Author had a Free File of the Month
  • Exclusive Author
  • Beta Tester
  • Sold between 100 000 and 250 000 dollars
  • Elite Author
  • Bought between 10 and 49 items
  • Belgium
  • Referred between 100 and 199 users
View Portfolio
Created 5 February 10
Compatible Browsers FireFox 2, FireFox 3, IE6, IE7, IE8, Opera, Safari
Software Version PHP 5.x
Software Framework N/A
Files Included PHP
by
by
by
by
by