Re: note 91116 added to id3v2attachedpictureframe.setPicture

From: Date: Tue, 26 May 2009 12:57:59 +0000
Subject: Re: note 91116 added to id3v2attachedpictureframe.setPicture
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-156023@lists.php.net to get a copy of this message
Maceo; To let you know, I've deleted the note that you contributed to the PHP manual several hours ago (found below) because there is no explanation of what the function does, nor comments to explain the actions. While to many programmers it is quite obvious what you're doing, to some - particularly the less-experienced developers - it is not obvious at all. You may resubmit your note with a brief explanation of what the code does and it will remain on the website. Thanks for your contributions! On Mon, May 25, 2009 at 23:36, <maceo.park@gmail.com> wrote: > <?php > > $path = realpath('.'); > > $objects = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($path), > RecursiveIteratorIterator::SELF_FIRST); > foreach($objects as $name => $object){ >    if(strpos($name, ".mp3") !== false) { >        $mp3 = new KTaglib_MPEG_File($name); >        $frameList = $mp3->getID3v2Tag()->getFrameList(); >        echo $name . "\n"; >        print_r($frameList); >      $pic_frame = new KTaglib_ID3v2_AttachedPictureFrame(); >      $pic_frame->setMimeType("image/jpeg"); >      $pic_frame->setType(3); // front_cover. refer to taglib source code. > /taglib-1.5/taglib/mpeg/id3v2/frames/attachedpictureframe.h >      $pic_frame->setPicture("SamplePicture.jpg"); >      $mp3->getID3v2Tag()->addFrame($pic_frame); >      $mp3->save(); >    } > } > > ?> > ---- > Server IP: 211.43.210.124 > Probable Submitter: 211.189.163.250 > ---- > Manual Page -- > http://www.php.net/manual/en/id3v2attachedpictureframe.setPicture.php > Edit        -- https://master.php.net/note/edit/91116 > Del: integrated  -- https://master.php.net/note/delete/91116/integrated¨{xIioÞ > @°;â_T > Del: useless     -- > https://master.php.net/note/delete/91116/useless > Del: bad code    -- > https://master.php.net/note/delete/91116/bad+code > Del: spam        -- > https://master.php.net/note/delete/91116/spam > Del: non-english -- àlÙoó > ›x¥¡»uhttps://master.php.net/note/delete/91116/non-english > Del: in docs     -- > https://master.php.net/note/delete/91116/in+docs > Del: other reasons-- https://master.php.net/note/delete/91116 > Reject      -- https://master.php.net/note/reject/91116 > Search      -- https://master.php.net/manage/user-notes.php > > > -- > PHP Notes Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- </Daniel P. Brown> daniel.brown@parasane.net || danbrown@php.net http://www.parasane.net/ || http://www.pilotpig.net/ 50% Off All Shared Hosting Plans at PilotPig: Use Coupon DOW10000

« previous php.notes (#156023) next »