You need to use an encoding function such as rawurlencode (note encode, not decode).
It only has value if you are passing information by querystring. The browsers are responsible for interpreting the provided dns, and if you give it a link that's encoded it will not know what to do with it.

Now, given the entire change you have above, you'll need to write something custom to do that.

tempz

07-12-2012, 01:35 AM

You want to encode it then have some code decode it and play it?

phpdude

07-12-2012, 01:55 AM

If you want to display it encoded and then play decoded, you can use base64_encode also