i’m using the following code to display the contents on stuff.xml into a textarea:
<?php
$handle = fopen(“stuff.xml”, “r+”);
while (!feof ($handle)) {
$buffer .= fgets($handle, 4096);
}
fclose ($handle);
?>
now, how can i save the changes done in the textarea… as far as i have read, i can either write at the top, or at the bottom of the file… but i want to overwrite the file completely… how can i do that ?