Version: 0.2
Type: Function
Category: File Management
License: GNU General Public License
Description: Read the header of a file
and stuff
Function GetHeader($file_IN, $size=128) { $loops=4; if ($file_IN != "") { $fp = fopen($file_IN, "r"); while ($tmp < $loops) { $str .= chop(fgets($fp,$size))."n<br>"; $tmp .= $tmp + 1; } // $str .= fgets($fp,$size); fclose($fp); return $str; }; }