Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
array_unique
#8
The code you firstly posted never did overwrited the same IP, but was writing a new log.
What you now need to do is to read the lines to an array first and then use preg_match(_all) to check if there is a same IP and then replace that.

http://www.php.net/manual/en/function.preg-match.php
Reply


Messages In This Thread
array_unique - by Scorpion - 12-12-2009, 01:54 PM
RE: array_unique - by Socrates - 12-12-2009, 01:56 PM
RE: array_unique - by Scorpion - 12-12-2009, 02:06 PM
RE: array_unique - by Gaijin - 12-12-2009, 02:14 PM
RE: array_unique - by Scorpion - 12-12-2009, 02:24 PM
RE: array_unique - by Gaijin - 12-12-2009, 02:33 PM
RE: array_unique - by Scorpion - 12-13-2009, 07:58 AM
RE: array_unique - by Gaijin - 12-13-2009, 08:13 AM
RE: array_unique - by Scorpion - 12-13-2009, 10:46 AM
RE: array_unique - by Gaijin - 12-13-2009, 11:11 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)