Re: [PHP] about PHP's filter_var function

2012-09-21 Thread Sebastian Krebs
Am 20.09.2012 19:54, schrieb Jim Lucas: On 09/20/2012 10:00 AM, Matijn Woudt wrote: On Thu, Sep 20, 2012 at 6:03 PM, Jim Lucasli...@cmsws.com wrote: On 09/20/2012 02:35 AM, Sebastian Krebs wrote: Plaseplease update... 5.1.6 is from 2006! I read the it's required, but I can't imagine

[PHP] about PHP's filter_var function

2012-09-20 Thread lx
Hello: I want to use filter_var function by this way: $ip = 192.168.0.1; if( !filter_var($ip, FILTER_VALIDATE_IP) ) { echo IP is not valid; } else {

Re: [PHP] about PHP's filter_var function

2012-09-20 Thread Vikash Kumar
You can use regex to check the format: /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/ You can also explode $ip on . and check if every part is numeric and less than 255. On 20 September 2012 14:44, lx lxlenovos...@gmail.com wrote: Hello: I want to use filter_var function by this way:

Re: [PHP] about PHP's filter_var function

2012-09-20 Thread Sebastian Krebs
Plaseplease update... 5.1.6 is from 2006! I read the it's required, but I can't imagine _anything_ that it's worth it to use such an extremely outdated, unsupported and therefore insecure and inefficient version... You know: There are 3 (!) new minor versions available right now (5.2, 5.3 and

Re: [PHP] about PHP's filter_var function

2012-09-20 Thread Jim Lucas
On 09/20/2012 02:35 AM, Sebastian Krebs wrote: Plaseplease update... 5.1.6 is from 2006! I read the it's required, but I can't imagine _anything_ that it's worth it to use such an extremely outdated, unsupported and therefore insecure and inefficient version... You know: There are 3 (!) new

Re: [PHP] about PHP's filter_var function

2012-09-20 Thread Maciek Sokolewicz
On 20-09-2012 18:03, Jim Lucas wrote: On 09/20/2012 02:35 AM, Sebastian Krebs wrote: Plaseplease update... 5.1.6 is from 2006! I read the it's required, but I can't imagine _anything_ that it's worth it to use such an extremely outdated, unsupported and therefore insecure and inefficient

Re: [PHP] about PHP's filter_var function

2012-09-20 Thread Sebastian Krebs
Am 20.09.2012 18:03, schrieb Jim Lucas: On 09/20/2012 02:35 AM, Sebastian Krebs wrote: Plaseplease update... 5.1.6 is from 2006! I read the it's required, but I can't imagine _anything_ that it's worth it to use such an extremely outdated, unsupported and therefore insecure and inefficient

Re: [PHP] about PHP's filter_var function

2012-09-20 Thread Matijn Woudt
On Thu, Sep 20, 2012 at 6:03 PM, Jim Lucas li...@cmsws.com wrote: On 09/20/2012 02:35 AM, Sebastian Krebs wrote: Plaseplease update... 5.1.6 is from 2006! I read the it's required, but I can't imagine _anything_ that it's worth it to use such an extremely outdated, unsupported and therefore

Re: [PHP] about PHP's filter_var function

2012-09-20 Thread Sebastian Krebs
Am 20.09.2012 18:17, schrieb Maciek Sokolewicz: On 20-09-2012 18:03, Jim Lucas wrote: On 09/20/2012 02:35 AM, Sebastian Krebs wrote: Plaseplease update... 5.1.6 is from 2006! I read the it's required, but I can't imagine _anything_ that it's worth it to use such an extremely outdated,

Re: [PHP] about PHP's filter_var function

2012-09-20 Thread Jim Lucas
On 09/20/2012 10:00 AM, Matijn Woudt wrote: On Thu, Sep 20, 2012 at 6:03 PM, Jim Lucasli...@cmsws.com wrote: On 09/20/2012 02:35 AM, Sebastian Krebs wrote: Plaseplease update... 5.1.6 is from 2006! I read the it's required, but I can't imagine _anything_ that it's worth it to use such an