$longip » History » Version 2
Per Amundsen, 08/11/2015 10:43 AM
1 | 1 | Per Amundsen | _Added in 1.9.0_ |
---|---|---|---|
2 | |||
3 | *$longip(address)* |
||
4 | |||
5 | Converts an IP address into a long value and vice-versa. |
||
6 | |||
7 | *Parameters* |
||
8 | |||
9 | address - Address to convert. |
||
10 | |||
11 | *Example* |
||
12 | |||
13 | <pre> |
||
14 | 2 | Per Amundsen | ; Convert a IP address to long. |
15 | 1 | Per Amundsen | //echo -ag $longip(8.8.8.8) |
16 | |||
17 | ; Convert a long to IP address. |
||
18 | //echo -ag $longip(134744072) |
||
19 | </pre> |