Therefore, I need to store IP addresses in the database, but storing them in the form of bites is not very efficient and not very convenient for my purpose.
So ... How to convert ip to integer in php with minimal processing, because it will be done millions of times a day.
And of course, how can I convert back from integet to ip?
I know that this can be googled and there are some simple solutions, but I ask faster , and not just for βdo X, but you get Yβ, because this is a pretty simple task.
Newproger
source share