I am embedding some mp3 files on my website. The problem is some of the names are different and my website does not know how to embed – unless I define all the files with the correct names.
For example,
http://example.com/chapter1/book-[some random name].001.mp3
I have set up my website so it embeds like this
http://example.com/chapter1/book.001.mp3
Is there any possible solution that I can use with php so it auto fills the [some random name].
You have some options,
Output the path to the file correctly (easiest)
Build and store a registry of the mp3s in a db or flat file and use mod_rewrite to pass the parameters to a loader script. (Example below)
Hope it helps