开发者

Zend_Validate_Between with ip2long

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜