2020-02-04, 12:23 PM
Hi,
I saw that the ip from mybb database has a 0xbc2b97fb form and the varbinary format. What is the function that converts the ip into this format? I tried with
but I did not succeed, how could this put in an insert into ... this format?
I saw that the ip from mybb database has a 0xbc2b97fb form and the varbinary format. What is the function that converts the ip into this format? I tried with
function str2bin($str) {
return '0x'.strtoupper(bin2hex($str));
}
but I did not succeed, how could this put in an insert into ... this format?