php mp3 script

By admin  

php mp3 script
Remove .mp3 or .wmv from the filename display (php script)?

Please see this question for the details.

http://uk.answers.yahoo.com/question/?qid=20080109110053AAM9a6T

what they suggested removes the .mp3 bit, but the one thing I didnt point out is that the hyperlink is reliant on the filename, i.e. if i remvoe the .mp3 from file.mp3, the hyperlink is also file – which then doesnt do the job.

Suggestions please

Instead of using
$fn = substr($fn, 0, strrpos($fn,”.”));

use
$fnd = substr($fn, 0, strrpos($fn,”.”));

Then you have the original filename as $fn, while the displayed filename is $fnd.

Simple!

Sorry about the mistake in my post on that answer, I forgot that strrpos deals with the last instance of a character.

PHP SCRIPT: QUANTUM MP3 SEARCH ENGINE INSTALLATION

Share and Enjoy:
  • Print
  • Digg
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay
  • BlinkList
  • LinkedIn
  • MySpace
  • StumbleUpon
  • Technorati
  • Twitter

Post a Comment

Your email is never shared. Required fields are marked *

*
*