nametoip
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | nametoip [2006/08/01 20:54] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | # $EPIC: nametoip.txt, | ||
+ | ======Synopsis: | ||
+ | $__iptoname__(< | ||
+ | $__nametoip__(< | ||
+ | |||
+ | ======Technical: | ||
+ | These functions are used to convert an IP address to a hostname, and vice | ||
+ | versa. | ||
+ | the given IP address, and $__nametoip__() does the opposite. | ||
+ | |||
+ | ======Practical: | ||
+ | These functions are used to convert between IP addresses and Internet | ||
+ | hostnames. | ||
+ | which of the two the input will be. They return nothing if the address | ||
+ | could not be converted, or if the input was invalid. | ||
+ | function should be used if the input is known to vary. | ||
+ | |||
+ | ======Returns: | ||
+ | iptoname: hostname for the given IP address \\ | ||
+ | nametoip: IP address for the given hostname | ||
+ | |||
+ | ======Examples: | ||
+ | < | ||
+ | $iptoname(127.0.0.1) | ||
+ | $nametoip(localhost) | ||
+ | $iptoname(localhost) | ||
+ | $nametoip(127.0.0.1) | ||
+ | </ | ||
nametoip.txt · Last modified: 2006/08/01 20:54 by 127.0.0.1