Hi There,
Got a problem. With the script in change.php I want to make changes in data.inc. In data.inc : [Test1] Data1 = Testing1 Data2 = Testing2
[Test2]
Data1 = Testing1
Data2 = Testing2
..
..
..
..
What do I have to do to change for example data1 in test2.
<?
$D_file = "data.inc";
$cf = fopen($D_file, "r+");
fputs($cf, "Is ok!");
fclose($cf);
?>
So, for example you would read:
Key1 ValueA
from the file and then update the file to be:
Key1 ValueB
The only thing I can do now is. Write the entire file. Or Write only in the beginning of the file, or append to it.
I know this is not the complete code, but I don't know how to, can you help me or something???
Carlo