Please Provide Your Feedback. Close

Quick Contact



Please Provide Your Detail Information. Close


How to turn off magic quotes gpc ? « Web Designing & Professional E-commerce Web Developers Software companyin India
Request A Quote

How to turn off magic quotes gpc ?

How to turn off magic quotes gpc?


Go to MAMP application >> Preferences (button) >> PHP (tab) >> Choose 5.3.1 or greater >> choose OK.
Go to the MAMP folder >> bin >> php >> php5.3.6 >> conf >> edit php.ini >> add “magic_quotes_gpc = Off” a few lines above “magic_quotes_sybase = Off”.
Restart MAMP’s servers.

For Shared hosting companies running a CGI-Webinterface

Create a php.ini file with the following:
magic_quotes_gpc = Off

Put it in your Webfolder. Then add the following lines to the .htaccess file (at the top) :

suPHP_ConfigPath /home/yourusername/public_html/yourfolder

order allow,deny
deny from all

Change “yourusername” and “yourfolder” to your respective folders.
give 755 Permission to your. .htaccess file.

For some hosts, add “php_flag magic_quotes_gpc off” to the .htaccess file.

Comments are closed.