Search notes:
Perl module MP3::Tag
use warnings;
use strict;
use MP3::Tag;
my $mp3_file = shift or die;
die unless -f $mp3_file;
my $mp3 = MP3::Tag->new($mp3_file) or die;
my ($title, $track, $artist, $album, $comment, $year, $genre) = $mp3->autoinfo();
print "\n";
print "Album: $album\n";
print "Track: $track\n";
print "Title: $title\n";
print "Artist: $artist\n";
print "Comment: $comment\n";
print "Genre: $genre\n";
print "Year: $year\n";
print "\n";
my @tagnames = $mp3 -> get_tags();
for my $tagname (@tagnames) {
my $x = $mp3->{$tagname};
print $x,"\n";
}
print "\n";
if (exists $mp3->{ID3v2}) {
my $id3v2 = $mp3->{ID3v2};
print "ID3v2 exists: $id3v2\n";
}
Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78
Stack trace:
#0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array)
#1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1745935325, '18.222.60.247', 'Mozilla/5.0 App...', NULL)
#2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/languages/Perl/modules/MP3/Tag/index(72): insert_webrequest()
#3 {main}
thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78