Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7681247
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T18:17:57+00:00 2026-05-31T18:17:57+00:00

Not sure if it’s possible but we have 2 servers set up, one automatically

  • 0

Not sure if it’s possible but we have 2 servers set up, one automatically escapes values passed via GET and the other doesn’t.

We’re not sure if this is ‘magic quotes’ or anything, but we need to have the second server escape the values too, otherwise we’ll have to rewrite a lot of code.

Thanks for any help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T18:17:58+00:00Added an answer on May 31, 2026 at 6:17 pm

    Yup it’s magic quotes that you are looking for, but beware:

    WHAT IS MAGIC QUOTES?

    Magic Quotes is the process which escape the incoming data to the PHP script like $_POST, $_GET. But it is recommeded to code with he magic quotes off.

    When magic quotes is enabled then it will escape single quote(‘), Double Quote(“), backslash() and NULL by placing backslash in front of these characters. This is same as performing addslashes() on any string.

    So whenever your user post the form with value like avinash’s name then you will get avinash\’s name in $_POST value.

    The PHP manual itself has a warning about using magic quotes

                                           Warning
    This feature has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 5.4.0.
    

    DISABLE MAGIC QUOTES

    There ae several ways to disable the Magic Quotes.

    1) Disable using PHP.ini

    You can set below setting from php.ini file.

      magic_quotes_gpc = Off
    
      magic_quotes_runtime = Off
    
      magic_quotes_sybase = Off
    

    2) Disable using .htaccess

    Place below code in your .htaccess file if you don’t have access to php.ini file.

    php_flag magic_quotes_gpc Off
      # OR
      php_value magic_quotes_gpc Off
    

    So a word of advice do NOT use them.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Not sure if this is possible but I have a slideshow on my site
Not sure if possible, but is there a way to have an application running
Not sure this is possible but maybe you can help. I have a list,
Not sure if this is even possible, but I think it's worth asking. What
not sure what i'm missing, but here ti go's: i have a floating left
Not sure entirely what is happening, but I get the following errors from Internet
Not sure if I worded this correctly ... but I have the following code:
Not sure if this is possible or not in crystal. I have a crosstab
Not sure that this is a valid programming question ... but is it possible
not sure it is possible but I am looking for a solution that will

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.