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 6743799
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T12:00:21+00:00 2026-05-26T12:00:21+00:00

i try to edit the text of an XML file from my page edit.php.

  • 0

i try to edit the text of an XML file from my page edit.php. It works fine if i test it in “localhost”, the xml file is updated as expected.

But, when i put the files on internet, and i try to edit the text from there, it seems to be ok, but then i refresh the page, and the text in the edit.php is still the same as before, and nothing has been updated. Do you know where this comes from? is there a problem with my “form” ?

here is my code :

<body>

        <?php
        /* READ */
        $dom = new DomDocument();
        $dom->load('edition.xml');

        $_haut = $dom->getElementsByTagName('haut')->item(0);
        $haut = $_haut->firstChild->nodeValue;

        /* WRITE */
        if ( isset($_POST['cache']) ){
            $haut = stripslashes($_POST['haut']);
            $_haut->firstChild->nodeValue = $haut;

            $dom->save('edition.xml');
        }
        ?>

        <div>
            <h4 style="float:left;">Update the text</h4>
            <div style="clear:both;"></div>


            <form method="post" action="edition.php">
                <p>
                <label for="textarea1">the text : </label><br />
                <textarea rows="14" cols="80" name="haut" id="textarea1"><?php echo $haut ?></textarea>
                </p>
                <input type="hidden" id="cache" name="cache"/>
                <p><input type="submit" value="Envoyer" /></p>
            </form>


        </div>
</body>

Thanks for your 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-26T12:00:21+00:00Added an answer on May 26, 2026 at 12:00 pm

    My best guess is the user php is running as does not have the permissions to do so.

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

Sidebar

Related Questions

When I try to edit an XML file in the XML Editor of Rational
I have a textview in my XML layout file, but when I try to
I try to edit ODT-documents programmaticly in PHP. In fact I just want to
I'm trying to test if the xml file have the tag <group> var xmlhttp
I would like to edit an existing XML file while preserving it's original layout.
I am attempting to trigger a download of an XML file stream from a
i try to build an application with xml parser. ex : http://www.androidpeople.com/android-xml-parsing-tutorial-using-saxparser but i
In my \drawable-mdpi folder, I have an image named: test.jpg In my main.xml file,
Any ideas why it works fine when I debug the code but when I
When I try to edit texts in my iPhone application ( UITextfield ), it

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.