Page 1 of 1

Magic Quotes....

Posted: Sun Dec 06, 2009 10:31 am
by synical21
Im pretty angry right now after a long battle talking to my hosting support about why they have magic quotes enabled. As probably predicted i got no where and they are not looking to change it in the near future... So i am here for some advice what to do, is their way to disable them with out access to php.ini? and when i use mysql real escape string the magic quotes are interfering i take it this is bad.

What do you recommend?

Re: Magic Quotes....

Posted: Sun Dec 06, 2009 11:15 am
by AbraCadaver
If it is Apache and the company allows, you can add it to an .htaccess file in your site root dir:

Code: Select all

php_value magic_quotes_gpc 0

Re: Magic Quotes....

Posted: Sun Dec 06, 2009 12:42 pm
by synical21
Nope i only got access to htdocs :( Any other walkarounds, i dont like slashes all over the place.

Re: Magic Quotes....

Posted: Sun Dec 06, 2009 12:45 pm
by AbraCadaver
Yeah, htdocs is your web root most likely. Try it.

-Shawn

Re: Magic Quotes....

Posted: Sun Dec 06, 2009 1:01 pm
by synical21
I opened notepad and typed in php_value magic_quotes_gpc 0 then saved it as .htaccess i then uploaded it to the directory and the server broke 8O

I got this error message:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Have i made the file correctly? I have never used a .htaccess before so hopefully i am doing it wrong.