Zend_Validate_Between with ip2long

I am trying to verify the ip address with Zend_Validate_Between and I am converting the ip to its long representation.

The problem is that I already have a validator checking the valid IP addresses of Zend_Validate_Ip (). Is there a way to use both?

Thank!

+3
source share
1 answer

I kind of guess that what you are actually trying to do is to check if the IP address is on this subnet. I am writing a blog post on how to do this, and will post it when done. If this is not what you are trying to do, then this post will be just a freebie. :-)

Checking the subnet with Zend Framework

+3
source

Source: https://habr.com/ru/post/1784535/


All Articles