define('IDENTIFIER_OLE', pack("CCCCCCCC",0xd0,0xcf,0x11,0xe0,0xa1,0xb1,0x1a,0xe1)); ... if (substr($this->data, 0, 8) != IDENTIFIER_OLE) { $this->error = 1; return false; }