How about inet_ntop()
? Then instead of chopping things into integers, you just use a varbinary(16)
to store it.
More Related Contents:
- How to log IP address in text file
- IP addresses in PHP
- Getting the location from an IP address [closed]
- Getting visitors country from their IP
- How to get Real IP from Visitor? [duplicate]
- How to get MAC address of client using PHP?
- select outgoing ip for curl request
- IP address storing in MySQL database using PHP [duplicate]
- How to check an IP address is within a range of two IPs in PHP?
- How to get Time Zone through IP Address in PHP [duplicate]
- Getting list IPs from CIDR notation in PHP
- Get user’s current location
- Calculate an IPv6 range from a CIDR prefix?
- How to use HTTP_X_FORWARDED_FOR properly?
- How to convert IPv6 from binary for storage in MySQL
- How to identify server IP address in PHP
- Get a user’s current location
- How do I get the external IP of my server using PHP?
- Regex to match an IP address [closed]
- How do I check if a string contains a specific word?
- How to generate in PHP all combinations of items in multiple arrays
- Best solution to protect PHP code without encryption
- What is the difference between a language construct and a “built-in” function in PHP?
- Best way to avoid the submit due to a refresh of the page
- What is the best practice to export canvas with high quality images?
- Getting data with UTF-8 charset from MSSQL server using PHP FreeTDS extension
- php echoing angle brackets
- RegExp in preg_match function returning browser error
- Is it possible to capture search term from Google search?
- Open Download Dialog with PHP