473,387 Members | 1,464 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

How do I disable magic_quotes_gpc in .htaccess?

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!!
Sep 24 '07 #1
2 5561
Atli
5,058 Expert 4TB
Hi. Welcome to The Scripts!

You could try something like:
php_flag magic_quotes_gpc off

Or:
php_value magic_quotes_gpc off
Sep 24 '07 #2
pbmods
5,821 Expert 4TB
Heya, slow2fear.

Please use CODE tags when posting source code:

[CODE=apache]
Apache configuration goes here.
[/CODE]
Sep 25 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: AmigaLemming | last post by:
As I understand my admins installed a PHP server and now my plain HTML pages also want to set a PHPSESSID cookie when loaded into a browser. Can I suppress this, e.g. by creating a configuration...
1
by: yawnmoth | last post by:
i'm trying to write a php script that will password protect some random directory by creating a .htaccess file, and a password file to accompany the .htaccess file, and it isn't working... ...
8
by: Joshua Beall | last post by:
Hi All, How do I disable magic quotes via .htaccess? I put the following file in my webroot, but it does not disable magic_quotes_gpc (according to phpinfo(), both the local and master value...
4
by: Ivo | last post by:
Greetings newsgroup, I am moving some php scripts to a new host. While getting to know the server, I ran into a strange problem. If I add a .htaccess file, or more specifically: a .htaccess with...
7
by: John | last post by:
Hello. I want to get this blasted .htaccess file sorted out, so I can have sessions without register_globals being on. I have looked everywhere for info on this and I mean everywhere...
0
by: Jack Hambabo | last post by:
Hi, I'm searching for a php script that can find out whether the current user (I know _SERVER will give me the name for non-cgi php) has the right to view a specific file. My dream is that I...
1
by: nickyeng | last post by:
I have checked this info from apache website, and i confused with it. Procteing System files it said: To run a really tight ship, you'll want to stop users from setting up .htaccess files...
2
by: hermanh128 | last post by:
I have a webserver hosting several websites running several php programs. Some but not all programs check magic_quotes_gpc is ON before using the addslashes function. Currently, magic_quotes_gpc is...
1
by: cheesecaker | last post by:
How does one disable one username logging in from multiple machines when using .htaccess authentication?
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.