Connecting Tech Pros Worldwide Help | Site Map

How do I disable magic_quotes_gpc in .htaccess?

Newbie
 
Join Date: Sep 2007
Posts: 1
#1: Sep 24 '07
Hi, My current .htaccess file contains this:
Expand|Select|Wrap|Line Numbers
  1. # -FrontPage-
  2.  
  3. IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
  4.  
  5. <Limit GET POST>
  6. order deny,allow
  7. deny from all
  8. allow from all
  9. </Limit>
  10. <Limit PUT DELETE>
  11. order deny,allow
  12. deny from all
  13. </Limit>
  14. AuthName www.aiesinc.com
  15. AuthUserFile /home/aiesi2/public_html/_vti_pvt/service.pwd
  16. AuthGroupFile /home/aiesi2/public_html/_vti_pvt/service.grp
  17.  
and I know that I need to add something about disabling magic_qutes_gpc in there (for all directories is fine) but I don't know what or where or how to add it...?? Can anyone please offer some advice? Thanks!!
Atli's Avatar
Moderator
 
Join Date: Nov 2006
Location: Iceland
Posts: 3,745
#2: Sep 24 '07

re: How do I disable magic_quotes_gpc in .htaccess?


Hi. Welcome to The Scripts!

You could try something like:
php_flag magic_quotes_gpc off

Or:
php_value magic_quotes_gpc off
pbmods's Avatar
Site Moderator
 
Join Date: Apr 2007
Location: Texas
Posts: 5,435
#3: Sep 25 '07

re: How do I disable magic_quotes_gpc in .htaccess?


Heya, slow2fear.

Please use CODE tags when posting source code:

[CODE=apache]
Apache configuration goes here.
[/CODE]
Reply