[Pdns-users] Status of poweradmin?
Roger Libiez
rlibiez at arthmoor.com
Sat Feb 9 19:15:12 UTC 2008
inet_pton and inet_ntop both require PHP >= 5.1.0 though. I understand
that PHP 4 has reached end of life, but I'm not sure how much
penetration PHP 5 has yet. These functions are also not available on
Windows machines, though I don't know how many Windows users are using
pdns-admin.
Hugo van der Kooij wrote:
>
> The current trick used in pdnsadmin is to validate IPv4 with:
> ~ function is_valid_ip($ip)
> ~ {
> ~ return( $ip == long2ip(ip2long($ip))) ? true : false;
> ~ }
>
> If my understanding of the PHP manual is correct this would work for
> both IPv4 and IPv6 if one uses inet_pton and inet_ntop instead.
>
--
PDNS-Admin: http://www.iguanadons.net/pdns-admin
Arthmoor Internet Services: http://www.arthmoor.com
More information about the Pdns-users
mailing list