开发者

Zend_Validate_Between with ip2long

开发者 https://www.devze.com 2023-02-03 22:50 出处:网络
I\'m trying to validate an ip address using Zend_Validate_Between and i\'m converting the ip to its long representation.

I'm trying to validate an ip address using Zend_Validate_Between and i'm converting the ip to its long representation.

The issue is that I already have a validator that check for valid IPs 'Zend_Val开发者_如何学运维idate_Ip()'. Is there a way to use both ?

Thanks!


I'm kind of guessing that what you're actually trying to do is validate whether or not an IP address is on a given subnet. I'm writing a blog post on how to do that and will post it when I'm done. If that's not what you're trying to do then that post will just be a freebie. :-)

Subnet validation with Zend Framework

0

精彩评论

暂无评论...
验证码 换一张
取 消