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

  • SEARCH
  • Home
  • 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 8527263
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T08:30:27+00:00 2026-06-11T08:30:27+00:00

I constructed my xml file with javascript and I show it correctly with an

  • 0

I constructed my xml file with javascript and I show it correctly with an alert like this :

<Voitures>
   <voiture par1="4" par2="1" par3="0"/>
   <voiture par1="3" par2="0" par3="0"/>
</Voitures>

But the problem is when I send it with ajax to a php file I obtain this result :

<Voitures>
   <voiture par1=\"4\" par2=\"1\" par3=\"0\"/>
   <voiture par1=\"3\" par2=\"0\" par3=\"0\"/>
</Voitures>

Thank you

  • 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-06-11T08:30:29+00:00Added an answer on June 11, 2026 at 8:30 am

    Your PHP configuration has magic quotes enabled, which is a deprecated setting that nobody should be using anymore. It has been removed in PHP 5.4. Disable it now, or you risk writing code that will behave incorrectly when you upgrade to PHP 5.4.

    If that’s not possible, use stripslashes() on the value prior to doing anything else with it. Only do this if you really cannot disable magic quotes. Developing PHP software with magic quotes enabled is a very, very bad idea.


    If you’re trying to write good code and be future-proof, put this as the top of every file, or some common include file that gets used everywhere:

    if (get_magic_quotes_gpc()) {
        trigger_error("Magic quotes are enabled; please disable them.", E_USER_ERROR);
    }
    

    This will make your application simply refuse to run if magic quotes are enabled.

    If you have the option, ship a .htaccess file with your application that contains this:

    php_flag magic_quotes_gpc Off
    

    This will, if possible, disable magic quotes for your entire application when it is depolyed on Apache. If the Apache configuration does not permit php_flag directives in .htaccess files then this will cause an HTTP 500 error, which is miles better than letting your application run with magic quotes enabled.

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

Sidebar

Related Questions

I have constructed an XML tree structure of an XML file. I am able
Javascript has a poorly constructed but convenient arguments variable inside every function, such that
My issue is I believe I've constructed the request correctly, but I am getting
I want to construct this XML file: <root> <data> <track src=123456> <desc id=1 mt=audio/mp3
This is the crashlog from Android Market: android.view.InflateException: Binary XML file line #8: Error
I have constructed an XSL file that parses an XML formatted log and generates
i can use an XML file like below <set xmlns:android=http://schemas.android.com/apk/res/android android:interpolator=@android:anim/decelerate_interpolator> <translate android:fromXDelta=100% android:toXDelta=0%
I have a program that stores it's information in an XML file. This file
I'd like to make an XML document in JavaScript then have a save dialog
I have an XML file that is bound to a listbox as below. This

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.