31                 if (is_writeable($this->filename)) {
 
   32                         if ($fp_source = @fopen($this->filename, 
'r+b')) {
 
   34                                 fseek($fp_source, -128, SEEK_END);
 
   35                                 if (fread($fp_source, 3) == 
'TAG') {
 
   36                                         fseek($fp_source, -128, SEEK_END); 
 
   38                                         fseek($fp_source, 0, SEEK_END);    
 
   42                                                                                                                 @$this->tag_data[
'title'],
 
   43                                                                                                                 @$this->tag_data[
'artist'],
 
   44                                                                                                                 @$this->tag_data[
'album'],
 
   45                                                                                                                 @$this->tag_data[
'year'],
 
   46                                                                                                                 @$this->tag_data[
'genreid'],
 
   47                                                                                                                 @$this->tag_data[
'comment'],
 
   48                                                                                                                 @$this->tag_data[
'track']);
 
   49                                 fwrite($fp_source, $new_id3v1_tag_data, 128);
 
   54                                 $this->errors[] = 
'Could not open '.$this->filename.
' mode "r+b"';
 
   58                 $this->errors[] = 
'File is not writeable: '.$this->filename;
 
   68                 $ThisFileInfo = $getID3->
analyze($this->filename);
 
   69                 if (isset($ThisFileInfo[
'tags'][
'id3v1'])) {
 
   70                         foreach ($ThisFileInfo[
'tags'][
'id3v1'] as $key => $value) {
 
   71                                 $id3v1data[$key] = implode(
',', $value);
 
   73                         $this->tag_data = $id3v1data;
 
   81                 if (is_writeable($this->filename)) {
 
   82                         if ($fp_source = @fopen($this->filename, 
'r+b')) {
 
   84                                 fseek($fp_source, -128, SEEK_END);
 
   85                                 if (fread($fp_source, 3) == 
'TAG') {
 
   86                                         ftruncate($fp_source, filesize($this->filename) - 128);
 
   94                                 $this->errors[] = 
'Could not open '.$this->filename.
' mode "r+b"';
 
   97                         $this->errors[] = $this->filename.
' is not writeable';