22 $info = &$this->getid3->info;
25 $efaxheader = $this->
fread(1024);
27 $info[
'efax'][
'header'][
'magic'] = substr($efaxheader, 0, 2);
28 if (
$info[
'efax'][
'header'][
'magic'] !=
"\xDC\xFE") {
32 $info[
'fileformat'] =
'efax';
35 if (
$info[
'efax'][
'header'][
'filesize'] !=
$info[
'filesize']) {
36 $this->
error(
'Probable '.((
$info[
'efax'][
'header'][
'filesize'] >
$info[
'filesize']) ?
'truncated' :
'corrupt').
' file, expecting '.
$info[
'efax'][
'header'][
'filesize'].
' bytes, found '.
$info[
'filesize'].
' bytes');
38 $info[
'efax'][
'header'][
'software1'] = rtrim(substr($efaxheader, 26, 32),
"\x00");
39 $info[
'efax'][
'header'][
'software2'] = rtrim(substr($efaxheader, 58, 32),
"\x00");
40 $info[
'efax'][
'header'][
'software3'] = rtrim(substr($efaxheader, 90, 32),
"\x00");
45 $this->
error(
'eFax parsing not enabled in this version of getID3() ['.$this->getid3->version().
']');
static LittleEndian2Int($byteword, $signed=false)
getID3() by James Heinrich info@getid3.org //
static PrintHexBytes($string, $hex=true, $spaces=true, $htmlencoding='UTF-8')
fseek($bytes, $whence=SEEK_SET)