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)

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

PHP4 and PHP5

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

Deprecated warnings in PHP5

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

Increasing upload_max_filesize

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

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...