Re: security/sql issues with php

From: Date: Wed, 21 Sep 2005 23:13:52 +0000
Subject: Re: security/sql issues with php
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-222929@lists.php.net to get a copy of this message
Checking data types can be very misleading. I've seen many examples (even recently in a book) that use is_int() to check to see whether something in $_GET or $_POST is an integer. Because everything in $_GET and $_POST is a string, this check always fails. Chris I have found that adding 0 and then running is_int() usually works.
Mikey

« previous php.general (#222929) next »