Re: Valid IP
| From: | Pierre-Alain Joye | Date: | Thu, 26 Sep 2002 17:07:29 +0000 |
| Subject: | Re: Valid IP | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-22026@lists.php.net to get a copy of this message | ||
On Thu, 26 Sep 2002 11:39:40 -0500
"Wilmar Perez" <wilmar.perez@caribe.udea.edu.co> wrote:
> Hello guys
>
> I know this should be asked in another list but don't want to subcribe just
> for a simple question. I apologise in advance if that bothers anyone.
>
> I'm trying to check valid IPs that come from a form filled by a user so I'm
> using the following:
If you do not need to check the range, why do not simply use ip2long ?
http://www.php.net/manual/en/function.ip2long.php
pa