Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
I've struck a problem. I'm using MP3::Mplib and interactively it works just fine and dandy, however via a browser, it doesnt. It will read the info from the MP3, but not write to it, nor return any error.

I'm using apache, the u/g is nobody:nobody, the file is nobody:nobody, i've even set the perms to 777 all the way down the tree, still nothing.

The docs mention a true value on success, and that is certainly true if i check $mp3->error, infact the output is a hash ref with {album => 2}

I'm at a bit of a loss, and if anyone can shed a bit of light, i'd be greatful.

sub write_tag { my $self = shift; my %args = @_; my $mp3 = MP3::Mplib->new($args{mp3}) || return "Unable to update +$args{mp3}: $!"; my @mp3ary = split('/', $args{mp3}); $mp3->set_v1tag({ year => $args{year} , artist => $args{artist}, album => $args{album} , genre => $args{genre} , title => pop @mp3ary , }, &ISO_8859_1); my $v1tag = $mp3->get_v1tag; return $v1tag; }

PS, yes i am aware of all the things involved with interacting with the FS via HTTP.

20040425 Edit by BazB: Changed title from 'MP3::Mplib'

In reply to Cannot write changes to file using MP3::Mplib through CGI by Ryszard

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?

What's my password?
Create A New User
Domain Nodelet?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2024-06-21 11:50 GMT
Find Nodes?
    Voting Booth?

    No recent polls found

    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.