2015-08-13, 01:08 PM
Hello!
How are IP-Adresses encoded in the Database?
My first idea was that they were splited by dots and every part was converted to hex. Sadly my attempt to change a IP for testing if it works failed.
Then I searched the MyBB-Code (just scanned) and found the my_inet_pton()-Function which returned unreadable results. Is this the function? How to get this values to phpmyadmin?
The $db->escape_binary()-Function seems to have no affect on MySql, has it?
Thanks in advance ...
Thomas131
How are IP-Adresses encoded in the Database?
My first idea was that they were splited by dots and every part was converted to hex. Sadly my attempt to change a IP for testing if it works failed.
Then I searched the MyBB-Code (just scanned) and found the my_inet_pton()-Function which returned unreadable results. Is this the function? How to get this values to phpmyadmin?
The $db->escape_binary()-Function seems to have no affect on MySql, has it?
Thanks in advance ...
Thomas131