<?php
require __DIR__.DIRECTORY_SEPARATOR.'filemagic.php';
$m= new FileMagic('/bin/bash');
// This test generates all information regarding to the filename
var_dump($m->collected());
// OR we need the MIME type of affected file
var_dump($m->mime());
// OR we need an info about the file whether executeable or not reagrding to its mime type
var_dump($m->executable());
|