views:

322

answers:

2

Hi guys I would like to know how I can have PHP display this URL correctly. Is there a working encoding method I can use that converts all this:

253A%252F%252F

to

://

https%253A%252F%252Fvideos-private.s3.amazonaws.com%252Flesson05.flv

+1  A: 

urldecode ;)

Damien MATHIEU
I was expecting this to work but it doesn't. Please advise! Thank you.$output = "file=https%253A%252F%252Fbassrx-private.s3.amazonaws.com%252Flesson05.flv"$flv = urlencode ($output);echo urlencode ($flv);
Ronal
Ronal, you need to decode, not to encode.
Roberto Aloi
A: 

The urldecode function decodes any %## encoding in the given string. In your "output" string you have %253A and so on. Remove those %25 and everything will be fine.

Roberto Aloi