|
Posted by Feanor on 06/07/07 15:17
i have the following php code set up to test:
<html>
<body>
<?php
if(!$xml = fopen("regData.xml","r+"))
{
echo "ERROR: unable to Open regData.xml";
exit;
}
fseek($xml, 0, SEEK_END);
fwrite($xml, "<test>");
fclose($xml);
?>
</body>
</html>
my original regData.xml:
<reg>
</reg>
regData.xml after php code run:
<test>
Any thoughts on why <test> isnt appended to the end of the file so it
looks like this?:
<reg>
</reg><test>
Navigation:
[Reply to this message]
|