Forum Moderators: coopster
I looked online and see no straight (short code) option, or I was not able to recognize it.
Does PHP provide anything that can convert this quickly?
For example - instead of having %2f I would like to see simple /
Thanks
urldecode() converts + symbols in the string to spaces, while rawurldecode() converts %20 to spaces, but not + symbols.
IOW: rawurlencode() and rawurldecode() convert to and from RFC 1738 compliant URL strings respectively, while urlencode() and urldecode() do not, so the structure of the information being passed should determine which is used to get the correct decoding from the string you are receiving.
The good news is that you get a choice... :)
Jim
decoding client-requested URLs
Thanks.
All what I do is grab referring URL to get some basic data and let it go.
I switched it to urldecode() to omit plus signs converted to spaces just so the log file looks better in Notepad++
And based on the research, that "+" is the only difference between the two.