how do u insert a content from your file?
i am currently using
$ftarget = fopen('$filename', 'w+');
fputs($ftaget,'test');
fclose($ftarget);
but this always overight the whole content and just leave the test value inside.
what do u think should be the problem here?
here the screen layout:
file.txt
hfsdh fdlskhfk sdlhfdjklsh fdkl shfkldjsh dfk
hkfdhl fksdhfsdkfh dlskhdfsjkl
jhfkldhfdklshfksdjhlsdfkhl
output should be like this
test
hfsdh fdlskhfk sdlhfdjklsh fdkl shfkldjsh dfk
hkfdhl fksdhfsdkfh dlskhdfsjkl
jhfkldhfdklshfksdjhlsdfkhl