38 $info = &$this->getid3->info;
40 fseek($this->getid3->fp,
$info[
'avdataoffset'], SEEK_SET);
41 $DOCFILEheader =
fread($this->getid3->fp, 8);
42 $magic =
"\xD0\xCF\x11\xE0\xA1\xB1\x1A\xE1";
43 if (substr($DOCFILEheader, 0, 8) != $magic) {
44 $info[
'error'][] =
'Expecting "'.Helper::PrintHexBytes($magic).
'" at '.
$info[
'avdataoffset'].
', found '.
Helper::PrintHexBytes(substr($DOCFILEheader, 0, 8)).
' instead.';
48 $info[
'fileformat'] =
'msoffice';
50 $info[
'error'][] =
'MS Office (.doc, .xls, etc) parsing not enabled in this version of GetId3Core() ['.$this->getid3->version().
']';
static PrintHexBytes($string, $hex=true, $spaces=true, $htmlencoding='UTF-8')
GetId3() by James Heinrich info@getid3.org //.
GetId3() by James Heinrich info@getid3.org //.
fseek($bytes, $whence=SEEK_SET)