Saturday 19 October 2019

php - how to turn off magic quotes in .htaccess file for joomla?

Create a php.ini or php5.ini file with the following:



magic_quotes_gpc = Off


Put it in your Joomla 3 root. Then change the htaccess.txt in your Joomla 3 root to .htaccess. Add the following lines to the .htaccess file (at the top), don't forget to change php.ini to php5.ini when applicable :





suPHP_ConfigPath /home/myusername/public_html/yourJ3folder

order allow,deny
deny from all




note: dont forget to change suPHP_ConfigPath with your path




reference from https://docs.joomla.org/How_to_turn_off_magic_quotes_gpc_for_Joomla_3

No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...