i dnt have perm. To change magic_quotes_gpc

Started on the old forum in March 2011 · view the original in the archive · old links redirect here

5 replies · 473 views · started 15 years ago · 1 min read

5 participants
Nepsalone Developer · 76 posts #1

i dnt have a permision to change magic_quotes_gpc in my host plez help me how to change magic_quotes_gpc enable and disable.

http://nepalwap.com 1st Nepali Mobile site...

subzero Super moderator Fellow · 3,954 posts #2

Leave it off or else your site will be hackable ...

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

something else Fellow · 2,296 posts #4

Turning magic quotes on helps to prevent sql injection .... however it will slow your site down as it escapes every POST or GET etc in your site .... This is ok however not every single variable is going into your database so it doesn't need escaping. This feature has also been deprecated so relying on it isn't a good idea. far better of using mysql_escape_string() to escape data going into your database... or if its not going into your database then use addslashes() as mysql_escape_string() will cause errors if a connection is not open.

frostymarvelous Senior · 266 posts #5

I use a workaround for my script. It is set to on, so I use a foreach on the superglobals and stripslash them.

Perfection comes at a cost

I accept liberty!

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close