PDA

View Full Version : What are magic quotes ?


eva2000
Sat 5th Aug '00, 7:58am
i always read something to do with php and magic quotes ? what are they and why do they cause problems ?

WebStyles
Sat 5th Aug '00, 5:14pm
From my understanding, when they are on, it's like using the addslashes() function on all GET / POST / Cookie data. If a script is expecting them to be on, then it won't escape the neccessary characters, on the other hand, if the script is expecting them to be off, it will add too many slashes. :)

eva2000
Sat 5th Aug '00, 5:19pm
thanks... i'm afraid that went right over my head :(

Mike Sullivan
Sat 5th Aug '00, 7:04pm
I don't really know how to continuing what WebStyles said, but what she said was correct.

But as a little extension, you can generally set them at run time with the script (vB does this)