How to disable Magic Quotes?

Status
Not open for further replies.

rohedin

New Member
Messages
7
Reaction score
0
Points
0
Hi there,
I've been enjoying this amazing free hosting for a while now, it's been very useful!
However there is one major problem I'm experiencing. The software I'm hosting on my website uses htmlspecialchars (I think) for handling of characters like " and '.

However Magic Quotes are enabled on the server, which is causing posts to appear full of slashes in places they shouldn't be. I was told Magic Quotes could be disabled by adding the following line to the .htaccess file:
php_flag magic_quotes_gpc Off
However, doing this results in a 500 error, with the following message:
Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration

So, is it possible to turn off Magic Quotes? If it was then X10 Hosting would be perfect for me :biggrin:

Thanks!
 
Last edited:

xav0989

Community Public Relation
Community Support
Messages
4,467
Reaction score
95
Points
0
Hello,

Magic Quotes cannot be disabled for one account, as it is a settings set in the php.ini file. However, you may modify your software to remove the quotes before parsing it regularly.

- xav0989
 
Status
Not open for further replies.
Top