Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
10-15-2009, 10:02 AM #1
- Join Date
- Oct 2009
- Thanked 0 Times in 0 Posts
example for requirment of addslash
i start to do some work with php, two questions first i'm using php-dev, do you recommend any other editor?
second i'm confused with magic_quotes, in my ini file setting is :
local value master value
magic_quotes_gpc On On
magic_quotes_runtime Off Off
magic_quotes_sybase Off Off
and i dont use any addslash or strip slash in my code but when i put a sentence like "this's is " a /test" in my form to push it in mysql field, it saved exactly same and i can retrieve it same either, so why do people use addslash and strip salsh? would you give me some examples to test?
10-15-2009, 11:07 AM #2
- Join Date
- Mar 2007
- Thanked 2,216 Times in 2,203 Posts
- Blog Entries
Take a look at http://codingforums.com/showthread.php?t=144149
After stripping the slashes added by magic_quote settings, you'd need to clean all external data(from GPC) of type string using mysql_real_escape_string()
The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)