PHP Classes

PHP File Magic: Check file access and execution permissions

Recommend this page to a friend!
  Info   View files Example   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 74 All time: 10,066 This week: 263Up
Version License PHP version Categories
filemagic 1.0GNU General Publi...5.3PHP 5, Files and Folders


This class can check file access and execution permissions.

It can detect the file MIME type using the finfo extension and well check its access permissions.

If the file has read access permissions it can also return its size, file type, file access statistics, MIME types, executable permissions, and contents hash values.

Picture of Wladek
  Performance   Level  
Name: Wladek <contact>
Classes: 1 package by
Country: Hungary Hungary
Age: ???
All time rank: 443439 in Hungary Hungary
Week rank: 578 Up8 in Hungary Hungary Up

  Files folder image Files  
File Role Description
Plain text file filemagic.php Class The FileMagic class
Accessible without login Plain text file test.php Example An example for FileMagic class

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:10,066
This week:263Up