摘要:
A note about converting IP addresses for storage in database. For MySQL, this is unnecessary as it has built in support via the INET functions. Also, ... 阅读全文
posted @ 2009-12-16 20:55
菜根talk
阅读(598)
评论(0)
推荐(0)
摘要:
/*Here are some tricks to convert from a "dotted" IP address to a LONG int, and backwards. This is very useful because accessing an IP addy in a datab... 阅读全文
posted @ 2009-12-16 20:52
菜根talk
阅读(357)
评论(0)
推荐(0)
摘要:
/************************** * int_oct($ip) * Convert INTeger rep of IP to octal (dotted quad) */ function int_oct($ip) { /* Set var... 阅读全文
posted @ 2009-12-16 20:39
菜根talk
阅读(202)
评论(0)
推荐(0)
摘要:
function parse_unsigned_int($string) { $x = (float)$string; if ($x > (float)2147483647) $x -= (float)"4294967296"; ... 阅读全文
posted @ 2009-12-16 20:35
菜根talk
阅读(218)
评论(0)
推荐(0)

浙公网安备 33010602011771号