Jump to content

[SOLVED] urlencode()


orange08

Recommended Posts

It has nothing to do with security, as only (almost all) non-alphanumeric characters are encoded, such as spaces, brackets, etc.

 

This function is convenient when encoding a string to be used in a query part of a URL, as a convenient way to pass variables to the next page.
Link to comment
https://forums.phpfreaks.com/topic/176175-solved-urlencode/#findComment-928409
Share on other sites

It simply encodes non-URL-safe characters into ones which are URL-safe using a widely accepted method (% followed by hexadecimal representation of the character).  It has nothing to do with security or obfuscation of data.

 

See: http://php.net/urlencode

Link to comment
https://forums.phpfreaks.com/topic/176175-solved-urlencode/#findComment-928410
Share on other sites

It simply encodes non-URL-safe characters into ones which are URL-safe using a widely accepted method (% followed by hexadecimal representation of the character).  It has nothing to do with security or obfuscation of data.

 

See: http://php.net/urlencode

 

i did read about the link...but, i just can't understand then why to use it...and if i didn't use it to encode my link, then what is its shortcoming?

Link to comment
https://forums.phpfreaks.com/topic/176175-solved-urlencode/#findComment-928415
Share on other sites

It simply encodes non-URL-safe characters into ones which are URL-safe using a widely accepted method (% followed by hexadecimal representation of the character).  It has nothing to do with security or obfuscation of data.

 

See: http://php.net/urlencode

 

i did read about the link...but, i just can't understand then why to use it...and if i didn't use it to encode my link, then what is its shortcoming?

 

i think i understand it now. thanks! :D

Link to comment
https://forums.phpfreaks.com/topic/176175-solved-urlencode/#findComment-928447
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.