Hmm...I haven't had much luck using a combination of functions to get this working like file() etc. so I instead of boring you with unsuccessful code, I was wondering if anyone had thoughts on this?
Have a file I append IP's of visitors to a site. I want to keep X number of the LAST lines in that file ie: the last X number of vistors' IPs.
Open the file.
Grab X number of the last lines.
Save file with these X number of last lines.
I bet there's an elegant, tight way of doing this..but how?