Hi I have this script:
[FONT=Courier New]<?php $fp = fopen( "test.txt" , "w" ); $inputString = 'Some text'; fwrite( $fp, $inputString ); ?> [/FONT]
-But it overwrites all the text in the txt file. How do I change it so it adds, not overwrites?
Read the PHP Manual on [man]fopen/man. You will find that using "w" is not what you want here.
ah yeah thanks just realised i need to use "a" with "fileopen"