[PEPr] Comment on File Formats::MP3_Playlist
| From: | PEPr | Date: | Fri, 11 Jun 2004 11:13:27 +0000 |
| Subject: | [PEPr] Comment on File Formats::MP3_Playlist | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-30484@lists.php.net to get a copy of this message | ||
David Costa (http://pear.php.net/user/gurugeek) has commented on the proposal for File
Formats::MP3_Playlist.
Comment:
Hello Bertrand!
Thanks for taking some of your valuable time to review my proposal, see my comments below:
"A driver model for both input and output would lead to a better designed interface. Otherwise,
you are going to have to add new methods to the main class or subclass it (bOrk)."
>> The structure is pretty similar. We do have an input in the constructor and an output.
"varchart" is not an sql datatype. BTW, sqlite does not need datatypes, that's why
you didn't get an error.
>> Fixed to Char now, source updated. Sqlite does need at least to differentiate between 2
>> datatypes: Text and Numeric "SQLite is typeless for the purpose of deciding what data is
>> allowed to be stored in a column. But some notion of type comes into play when sorting and comparing
>> data. For these purposes, a column or an expression can be one of two types: numeric and
>> text.."
As far as I know it considers text any type that containts BLOB,
CHAR, CLOB, TEXT.
"About iTunes, see http://www.maczsoftware.com/phptunest/"
>> Been there done that ;) that is a different approach thou. I start from the mp3 files and
>> this approach is certainly cross platform (I tested the scrip on my Mac OS X which is my primarly
>> development environment) and more reliable.
In other words I do not transform a proprietary playlist into another format but from the mp3 files
I do create playlists in several formats including the open standards M3U and SMIL which are
supported on Mac too. In any case I do value your suggetion.
"I didn't look too closely but your usage of ob_ function looks scary. There might be some
more elegant ways."
>> you are right, I will try to think on something else for that.
And why make it a PHP5 only class, I don't see any PHP5 only features ?
>> Sqlite for instance. True Sqlite works on PHP4 too but with PHP 5.0.0. very close I
>> started (since beta 1) to code every class in PHP 5.
Once again thanks for your time and attention,
Regards
David Costa
Proposal information:
http://pear.php.net/pepr/pepr-proposal-show.php?id=87
--
Sent by PEPr, the automatic proposal system at http://pear.php.net