... Hi, again.

I have two ways of saving my XML documents.

1)

$load = fopen([path to file], 'wb');
fwrite($load , $DomDoc->saveXML());
fclose($load);

2)

$DomDoc->save([path to file])

I do not see why either should perform their task poorly, but is one of them better than the other?

    I deleted your two posts after the first in this thread... I haven't seen anyone deleting your other posts though. If you can name a specific instance/thread you think your posts were erroneously deleted/lost, feel free to PM me with details.

    As for the main question at hand... my answer is: most likely yes, one is better. Which one? Dunno... take some reasonably-sized sample data and perform the save one way a good number of times (at least 10, maybe more) and time it. Do the same for the other method. Doing this should produce some usable benchmark results to decide which one is faster.

      What did my post ever do to you? They where so sweet and innocent... They deserved better...

      As for the question in hand, I do not know if it was the "speed" I was thinking of... I was more curious what the difference was between the functions, and when one should be used instead of the other (seeing how you have interpret my question, I now see that my original query could have been more well put).

      Well, Thanks for your input anyway, I'll see if I can mark the bench with the stains of blood from the PHP scripts.

      Oh, by the why... What is a hreak? I mean, what does PHPhreak mean? I heard of PHPfreaks, but hreaks? No sir, no hreaks here.

        5 days later

        The meaning of life. No wait, "I deleted your two posts after the first in this thread...", whereas my question was "But, for the love of God why?!"

        You talk about deleting threads like it was the most common thing in the world, what are you the anti-anti-Christ?! (Yeah, that's right I just accused you of being a Christian. Well, more correctly, the founder of Christianity... Hmm, and technically the founder of the anti-Christ... Wait, doesn't that make Christ and anti-Christ the same... Great, now I'm dizzy... )

        And like that wasn't enough, you continue: "I haven't seen anyone deleting your other posts though." You are saying two things here: 1) you are stalking me. 2) I am apparently a target on this forum.

        While your at it, answer my original thread question once more, come on, you know you'll like.

          ManWithNoName wrote:

          The meaning of life. No wait, "I deleted your two posts after the first in this thread...", whereas my question was "But, for the love of God why?!"

          Dunno... didn't seem to add anything at all to this thread. Since they were so precious, however, I've undeleted them for you. You're welcome.

          ManWithNoName wrote:

          And like that wasn't enough, you continue: "I haven't seen anyone deleting your other posts though." You are saying two things here: 1) you are stalking me. 2) I am apparently a target on this forum.

          No, I'm saying 1) I'm a moderator, and I'm trying to help you by searching for your previous posts (a couple of clicks) and scanning for deleted posts, and 2) you're trying to make yourself out as a target, not me.

          ManWithNoName wrote:

          While your at it, answer my original thread question once more, come on, you know you'll like.

          Actually, I don't really have much more to contribute to the topic, so I'm going to unsubscribe from this thread.

            Write a Reply...