RE: PHP Unique Visitor IP Grabber 11-26-2013, 01:50 AM
#7
(11-25-2013, 06:45 PM)Crime Wrote:(11-17-2013, 02:12 PM)snooper Wrote: They are easy to code, and it would be faster+better if u used sql
Technically not faster, as depending on how your database fills up, the requests could take more time, while the current code just queries a text file, and can pull by IP through the whole list. I've converted my code to a database though.
I would argue that though that depending on the implementation of your file search that could also take longer. Both could be optimized or poorly coded. Also depends on size. On an app of this size you probably arent going to get thousands of IP's in a txt file so SQL would probably have a moderately larger overhead, which is why i suggested sqlite.
Allows for a much more refined storage of information without as much of the server overhead. its like opening a text file except with an easier way of storing more relevant information.



![[+]](https://sinister.li/images/modern/collapse_collapsed.png)