A textfile based counter script's efficiency???

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

User avatar
Takuma
Forum Regular
Posts: 931
Joined: Sun Aug 04, 2002 10:24 am
Location: UK
Contact:

Post by Takuma »

Yep and if you do that you have to read different files which will probably take more time...
lc
Forum Contributor
Posts: 188
Joined: Tue Apr 23, 2002 6:45 pm
Location: Netherlands

Post by lc »

No actually that is a nice idea.... create a file for every possible first number of an IP, just first do the remote_addr thing... then take the first letter from that. open the file with that letter as name... and if it isn't in the file already... then run oromain's counter script and don't count all stored IP's but just have a sepparate textfile with the nr in it.

Though.... I don't know if it'd do anything in the long run. I'm tempted to just go ahead and try it out... unless someone can point me in the direction of a good free counter... One that's reliable.
Post Reply