Hi
How to completly overwrite a file when I got to update its content ?
thank you
Just open it for writing..all previous contents are deleted...
$fp = fopen("file.txt","w");
The only time the data isn't deleted is when you open it for append ("a") or for reading ("r").
---John Holmes...
Ok, I suppose this method is smarter than executing unlink($file); fopen($file,"a"); uh ?
🙂 ... Yeah, it is.
Love those manuals...