Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.