Turning magic quotes off

A lot of software now is requiring that "magic quotes" be switched off as it presents a security risk, system wide we are keeping it enabled for a period of time to support legacy software that is not ready for this change.

However, you can update it in your own hosting account by adding the following line to your php.ini in your public_html (this will disable magic quotes for your whole domain):

; Magic quotes for incoming GET/POST/Cookie data.
magic_quotes_gpc = Off


Because we also run suPHP for server security you will also need to tell your domain where this php.ini file is, edit/create the .htaccess file in your public_html directory and add the following line:

suPHP_ConfigPath /home/USERNAME/public_html/

(replacing USERNAME with your cPanel username)

Was this answer helpful?

 Print this Article

Also Read

PHP4 and PHP5

When we made the decision to install PHP5 we were made aware of a large number of scripts that...

Increasing upload_max_filesize

If you are using a CMS you may have found that you can't upload larger files because of the...

Deprecated warnings in PHP5

If you've recently moved servers from a server where PHP4 was the default to a server where...

Processing HTML files with PHP

If you want to add PHP commands to your HTML pages and don't wish to change the file extensions...