Thứ Năm, 26 tháng 9, 2013

disable magic_quotes_gpc joomla 3.

Cách 1: trong file .htaccess
Thêm vào cuối cùng dòng  php_value magic_quotes_gpc off
Up lên host.

Cách 2:
1.Create file php5.ini
2. Add content
magic_quotes_gpc = Off
magic_quotes_runtime = Off
magic_quotes_sybase = Off
extension=pdo.so
extension=pdo_mysql.s
display_errors = Off
error_reporting = Off


Cách 3: Cách thao khảo tại: http://docs.joomla.org/How_to_turn_off_magic_quotes_gpc_for_Joomla_3
Tạo 1 file php5.ini thêm đoạn
magic_quotes_gpc = Off
magic_quotes_runtime = Off
magic_quotes_sybase = Off
extension=pdo.so
extension=pdo_mysql.s
display_errors = Off
error_reporting = Off

Tạo 1 file php.ini thêm đoạn
magic_quotes_gpc = Off
magic_quotes_runtime = Off
magic_quotes_sybase = Off


Mở file .htaccess thêm đoạn code vào đầu file
<IfModule mod_suphp.c>
  suPHP_ConfigPath /home/myusername/public_html/yourJ3folder
  <Files php.ini>
    order allow,deny
    deny from all
  </Files>
</IfModule> 
 /home/myusername/public_html/yourJ3folder là đường dẫn tuyệt đối của host chỉ đến file php5.ini
 

0 nhận xét:

Đăng nhận xét