php-general Digest 20 Sep 2012 17:54:40 -0000 Issue 7972

2012-09-20 Thread php-general-digest-help
php-general Digest 20 Sep 2012 17:54:40 - Issue 7972 Topics (messages 319154 through 319165): about PHP's filter_var function 319154 by: lx 319155 by: Vikash Kumar 319156 by: Sebastian Krebs 319159 by: Jim Lucas 319160 by: Maciek Sokolewicz

[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

[PHP] CURL vs Exif_imagetype()

2012-09-20 Thread Rango
Hi, I host a flash painting tool on my site, and wanted to add ability for the users to add a background image from a given url, but I have to make sure the url they add truely refers to a real jpg file, and not something else. I found a methoed with exif_imagetype() that worked except my

[PHP] Re: CURL vs Exif_imagetype()

2012-09-20 Thread Maciek Sokolewicz
On 20-09-2012 13:48, Rango wrote: Hi, I host a flash painting tool on my site, and wanted to add ability for the users to add a background image from a given url, but I have to make sure the url they add truely refers to a real jpg file, and not something else. I found a methoed with

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

[PHP] Warning at PDO:Firebird driver manual page removed.

2012-09-20 Thread Davi Marcondes Moreira
Hi, good evening! I'm working with an database from and older application (Firebird 1.5) and I need some help to implement the PDO:Firebird in our projects at work. If anybody could give me some light in this case, I would be very happy to implement PDO with Firebird from now on. Until last