A free xspf playlist generator and music player, written in PHP. Generates valid xspf from mp3 tags. Includes the JW player and an AutoEmbed script. See documentation link up to your right for more information.
Be the first to post a text review of xspfphp. Rate and review a project by clicking thumbs up or thumbs down in the right column.
Last updated: March 30 2009 See <a href=readme.html> Readme </a> for more details. 3/30/09 XSPF.AUTOGEN.PHP Fixed incorrect output. Autogen now saves output as xspf.dir, overwriting current xspf.dir Autogen now requires timer.class.php included in svn or on my source page. See http://www.trbailey.net/xspf/advanced.html PLAYER.PHP custom URL mode Updated player.php so you can specify any url pointer to player.swf and skins.swf directory Updated player.php so you can specify any playlist url, even a static playlist. 3/29/09 UPDATE for xspf.autogen.php It has come to my attention that a recent .svn update to autogen is messed up. It generates incorrect output, duplicating lines for directories. I'll post a fix asap. You can find current source links on the "Advanced" page. Navigate to xspfphp.sourceforge.net/ and click advanced the look at the bottom. 3/27/09 Update, xspf.autogen.php now only includes directories containing mp3 files. Rejection array updated to ignore .svn directories. 3/26/09 Added support for gif, jpg or png images in music directory Added test for gif, jpg or png as default playlist image. If no -noimage.xxx is found, no image element for playlist is generated ??? Added line feed and comma after artist (creator element) in annotation tag Added publisher data to end of annotation and support for publisher url as a test. If publisher URL shows up in any or your playlists let me know. It's documented but I haven't seen it used. Added custom URI for both info and link elements. Link element is added via xspf.settings.php info element is added to end of xspf.dir entry. Example:<tt> ----[path]---------- ----[url]-------------------------- ----[info link]--------------- /var/www/xspf/music/ http://www.trbailey.net/xspf/music/ http://www.trbailey.net/music/ </tt> Updated output to format raw xml so it's nicer to read, thanks to comments from Sebastian at spiff. This is an experimental update so it's not committed to svn yet. Source is here: <a href="http://www.trbailey.net/xspf/xspf.phps">http://www.trbailey.net/xspf/xspf.phps</a> If you're not familiar with source output hit CTRL-A then copy / paste it to notepad2 or Notepad++ and save as xspf.php Fixes raw formatting issue with simplexml output (no newline after elements) Added xspf.autogen.php to svn. (rev >35) Thanks to comments by tracy xspf.autogen.php is a simple script that lists directories recursively, generating a usable xspf.dir as output in a browser. <a href="/xspf/xspf.autogen.phps">Get it here</a> or update to latest svn. Added example quick change player theme to index page. Added example of using multiple playlists with a drop down list to index page. Usage: Copy xspf.autogen.php to your music directory containing subdirectories Run it from a browser (http://yourhost/xspf/xspf.autogen.php Copy output to xspf.dir and remove undesired lines. Rearrange directory names the way you want them to appear in the playlist. Save xspf.dir and regenrate playlist. (Shift+RELOAD in most browsers) Known issues: Some mp3 files don't cache correctly even on apparently correct tags. <blockquote>Use get_id3() demo editor to read and write the tag.</blockquote> New Features: Added support for Mysql cacheing Moved user settings to xspf.settings.php Added variable toggles for: MySql database cacheing xspf output in browser (via xsl stylesheet) Annotation element in output Comments in output Link & info element in playist (adds a download button in JW Player) Debug output forces browser stylesheet and displays server path's. Added string sort on full filename within in each directory. (see $sort in xspf.settings.php) See SVN for latest updates Comments to siggma@trbailey.net SVN Instructions: Assuming you know what svn is and it's installed on your box, the command below will work in a linux/unix shell. #svn co https://xspfphp.svn.sourceforge.net/svnroot/xspfphp Once the SVN checkout is complete the current release will be located under: ./xspfphp. You can then edit xspf.settings.php, create an xspf.dir file and upload all files to your web server for testing. See readme.html or README in the installation for detailed instructions. Please don't forget to upload your music If you use tortoise svn, right click and enter the URL listed below and the name of the directory in which to place the svn copy. https://xspfphp.svn.sourceforge.net/svnroot/xspfphp
Last updated: March 30 2009 See <a href=readme.html> Readme </a> for more details. 3/30/09 XSPF.AUTOGEN.PHP Fixed incorrect output. Autogen now saves output as xspf.dir, overwriting current xspf.dir Autogen now requires timer.class.php included in svn or on my source page. See http://www.trbailey.net/xspf/advanced.html PLAYER.PHP custom URL mode Updated player.php so you can specify any url pointer to player.swf and skins.swf directory Updated player.php so you can specify any playlist url, even a static playlist. 3/29/09 UPDATE for xspf.autogen.php It has come to my attention that a recent .svn update to autogen is messed up. It generates incorrect output, duplicating lines for directories. I'll post a fix asap. You can find current source links on the "Advanced" page. Navigate to xspfphp.sourceforge.net/ and click advanced the look at the bottom. 3/27/09 Update, xspf.autogen.php now only includes directories containing mp3 files. Rejection array updated to ignore .svn directories. 3/26/09 Added support for gif, jpg or png images in music directory Added test for gif, jpg or png as default playlist image. If no -noimage.xxx is found, no image element for playlist is generated ??? Added line feed and comma after artist (creator element) in annotation tag Added publisher data to end of annotation and support for publisher url as a test. If publisher URL shows up in any or your playlists let me know. It's documented but I haven't seen it used. Added custom URI for both info and link elements. Link element is added via xspf.settings.php info element is added to end of xspf.dir entry. Example:<tt> ----[path]---------- ----[url]-------------------------- ----[info link]--------------- /var/www/xspf/music/ http://www.trbailey.net/xspf/music/ http://www.trbailey.net/music/ </tt> Updated output to format raw xml so it's nicer to read, thanks to comments from Sebastian at spiff. This is an experimental update so it's not committed to svn yet. Source is here: <a href="http://www.trbailey.net/xspf/xspf.phps">http://www.trbailey.net/xspf/xspf.phps</a> If you're not familiar with source output hit CTRL-A then copy / paste it to notepad2 or Notepad++ and save as xspf.php Fixes raw formatting issue with simplexml output (no newline after elements) Added xspf.autogen.php to svn. (rev >35) Thanks to comments by tracy xspf.autogen.php is a simple script that lists directories recursively, generating a usable xspf.dir as output in a browser. <a href="/xspf/xspf.autogen.phps">Get it here</a> or update to latest svn. Added example quick change player theme to index page. Added example of using multiple playlists with a drop down list to index page. Usage: Copy xspf.autogen.php to your music directory containing subdirectories Run it from a browser (http://yourhost/xspf/xspf.autogen.php Copy output to xspf.dir and remove undesired lines. Rearrange directory names the way you want them to appear in the playlist. Save xspf.dir and regenrate playlist. (Shift+RELOAD in most browsers) Known issues: Some mp3 files don't cache correctly even on apparently correct tags. <blockquote>Use get_id3() demo editor to read and write the tag.</blockquote> New Features: Added support for Mysql cacheing Moved user settings to xspf.settings.php Added variable toggles for: MySql database cacheing xspf output in browser (via xsl stylesheet) Annotation element in output Comments in output Link & info element in playist (adds a download button in JW Player) Debug output forces browser stylesheet and displays server path's. Added string sort on full filename within in each directory. (see $sort in xspf.settings.php) See SVN for latest updates Comments to siggma@trbailey.net SVN Instructions: Assuming you know what svn is and it's installed on your box, the command below will work in a linux/unix shell. #svn co https://xspfphp.svn.sourceforge.net/svnroot/xspfphp Once the SVN checkout is complete the current release will be located under: ./xspfphp. You can then edit xspf.settings.php, create an xspf.dir file and upload all files to your web server for testing. See readme.html or README in the installation for detailed instructions. Please don't forget to upload your music If you use tortoise svn, right click and enter the URL listed below and the name of the directory in which to place the svn copy. https://xspfphp.svn.sourceforge.net/svnroot/xspfphp
Added player.php Renamed settings to prevent overwrite on update Corrected documentation to resolve caching issue
Be the first person to add a text review.
Copyright © 2009 Geeknet, Inc. All rights reserved. Terms of Use
Thanks for your rating!
Would you also like to write a review?
Thanks for your review!
Get credit for your review by logging in via OpenID. Click your account provider: