#!/usr/bin/php -q php readfile.php {path to image} {cluster number} * * @author Bernd Holzmueller * @license http://creativecommons.org/licenses/by-sa/3.0/de/ Creative Commons Attribution-Share Alike 3.0 Germany * @copyright Copyright © 2010 tiggersWelt.net **/ require ('loadfat.php'); if (!is_object ($Image)) die ('Something went wrong...' . "\n"); // Retrive the first cluster $p = null; if (isset ($argv [2])) { if (substr ($argv [2], 0, 2) == '0x') $p = hexdec ($argv [2]); else $p = intval ($argv [2]); } // Try to read the file echo $Image->readFile ($p); ?>