31 $this->errors[] =
'WriteLyrics3() not yet functional - cannot write Lyrics3';
37 $ThisFileInfo = $getID3->
analyze($this->filename);
38 if (isset($ThisFileInfo[
'lyrics3'][
'tag_offset_start']) && isset($ThisFileInfo[
'lyrics3'][
'tag_offset_end'])) {
39 if (is_readable($this->filename) && is_writable($this->filename) && is_file($this->filename) && ($fp = fopen($this->filename,
'a+b'))) {
42 $oldignoreuserabort = ignore_user_abort(
true);
44 fseek($fp, $ThisFileInfo[
'lyrics3'][
'tag_offset_end']);
45 $DataAfterLyrics3 =
'';
46 if ($ThisFileInfo[
'filesize'] > $ThisFileInfo[
'lyrics3'][
'tag_offset_end']) {
47 $DataAfterLyrics3 = fread($fp, $ThisFileInfo[
'filesize'] - $ThisFileInfo[
'lyrics3'][
'tag_offset_end']);
50 ftruncate($fp, $ThisFileInfo[
'lyrics3'][
'tag_offset_start']);
52 if (!empty($DataAfterLyrics3)) {
53 fseek($fp, $ThisFileInfo[
'lyrics3'][
'tag_offset_start']);
54 fwrite($fp, $DataAfterLyrics3, strlen($DataAfterLyrics3));
59 ignore_user_abort($oldignoreuserabort);
64 $this->errors[] =
'Cannot fopen('.$this->filename.
', "a+b")';
analyze($filename, $filesize=null, $original_filename='')
getID3() by James Heinrich info@getid3.org //
Create styles array
The data for the language used.