PHP Scripts – File Explorer Class
PHP Scripts – File Explorer Class | 8 KB
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.
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.