Pages

Tuesday, 30 July 2013

how turn off magic quote in server

at first create a file named php.ini
write the following code in the php.ini file,
magic_quotes_gpc = Off
extension=pdo.so
extension=pdo_mysql.so

then upload it to root folder. i.e. in your site root folder.

Then create a .htaccess file in root folder

put the following code in top of the .htaccess file
<IfModule mod_suphp.c>
  suPHP_ConfigPath /home/myusername/public_html/yourJ3folder
  <Files php.ini>
    order allow,deny
    deny from all
  </Files>
</IfModule>

Change "myusername" and "yourJ3folder" to your respective folders.
The "/home/myusername/public_html/yourJ3folder" can be found via 
the Global Configuration