I want to keep ips from visitors and place them on a file. I tried fwrite() function but I think it is rewrite on the previus ip on file.
Example.
ip.txt is
Look at the manual
Check what the 2nd parameter means.
Youve chosen w mode which is an overrwrite mode. Try a mode instead (append)
w
a