Koozali.org: home of the SME Server

How can i turn the Magic_Quote_gpc ON

Offline akinomatics

  • *
  • 5
  • +0/-0
How can i turn the Magic_Quote_gpc ON
« on: January 11, 2017, 05:25:02 PM »
Hello, Pls I am having a problem in turning the Magic_quote_gpc ON, I installed smeserver 9 and restore an Old joomla site on it, but was not displaying well just due to the Magic_quote_gpc which is Off in smeserver 9.

How can I turn it on?

Any contribution will be highly appreciated.
thanks

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: How can i turn the Magic_Quote_gpc ON
« Reply #1 on: January 11, 2017, 05:34:41 PM »
Hi there, welcome here..

searched a bit for Magic_quote_gpc here and in the wiki, no results.. so I guess you'd need a custom fragment for php

see https://wiki.contribs.org/Template_Tutorial

Offline Jean-Philippe Pialasse

  • *
  • 2,912
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: How can i turn the Magic_Quote_gpc ON
« Reply #2 on: January 11, 2017, 09:57:05 PM »
I just give one warning, but you must already be aware of this : http://php.net/manual/en/info.configuration.php#ini.magic-quotes-gpc

 magic_quotes_runtime boolean
    Warning

    This feature has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 5.4.0.

    If magic_quotes_runtime is enabled, most functions that return data from any sort of external source including databases and text files will have quotes escaped with a backslash. If magic_quotes_sybase is also on, a single-quote is escaped with a single-quote instead of a backslash.

SME9 has php 5.3, but beware it will not be available for long, so I would advise to only enable them the time to update your joomla to a version that ask it to be disabled.