INET_ATON('{$list[$i]['ip']}') ???
본문
https://gnustudy.com/bbs/board.php?bo_table=skin_etc&wr_id=80
$row_ip = sql_fetch(" SELECT country FROM ip2nation WHERE ip < INET_ATON('{$list[$i]['ip']}') ORDER BY ip DESC LIMIT 0,1 ");
$ip_flag = $row_ip['country'];
위의 소스에서 INET_ATON('{$list[$i]['ip']}')
이 코드는 어떻게 작동을 하나요? 또는 어디에서 불러 오나요?
답변 3
MariaDB/MySQL DB 자체 함수입니다.
* MariaDB - https://mariadb.com/kb/en/inet_aton/
* MySQL - https://dev.mysql.com/doc/refman/8.0/en/miscellaneous-functions.html#function_inet-aton
링크 따라가서 db에 ip2nation을 설치하고 해야 됩니다.
BiHon 님, 들레아빠 님
답변 감사합니다.
답변을 작성하시기 전에 로그인 해주세요.