File: test.php

Recommend this page to a friend!
  Classes of Wladek  >  PHP File Magic  >  test.php  >  Download  
File: test.php
Role: Example script
Content type: text/plain
Description: An example for FileMagic class
Class: PHP File Magic
Check file access and execution permissions
Author: By
Last change:
Date: 4 years ago
Size: 382 bytes


Class file image Download

require __DIR__.DIRECTORY_SEPARATOR.'filemagic.php';
$m= new FileMagic('/bin/bash');

// This test generates all information regarding to the filename
// OR we need the MIME type of affected file
// OR we need an info about the file whether executeable or not reagrding to its mime type

For more information send a message to info at phpclasses dot org.