Quote:
Originally Posted by fysiks
Simply open a file with the "w" mode in fopen(). This will delete all existing contents and write your new text in the newly blank file.
PHP Code:
new f = fopen("filename.txt", "w")
if( f )
{
fputs(f, "new text")
fclose()
}
|
Thanks! Working
Now any ideas how to open filename, read the number and count? Then add +1.
Example: filename.txt has numer 7. Read that number and put +1.