Re: Getting totals
| From: | Rob W. | Date: | Wed, 07 Jun 2006 01:46:39 +0000 |
| Subject: | Re: Getting totals | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-237523@lists.php.net to get a copy of this message | ||
if (strstr(192.168.100,192.168.100.10)) {
$inc++;
}
echo "$inc";
That returns nothing. What am i still doing wrong?
----- Original Message ----- From: "Rabin Vincent" <rabin@rab.in>
To: "Rob W." <rob@fiberuplink.com>
Cc: <php-general@lists.php.net>
Sent: Tuesday, June 06, 2006 1:36 PM
Subject: Re: [PHP] Getting totals
On 6/6/06, Rob W. <rob@fiberuplink.com> wrote:So far what I have gotten is a stristr match but it's not working correctly. I have a variable that basically weed's out the last digits of the ip it's self from help previously So my code so far is: if (stristr($block,$address)) { $count_ip++; }You've got the parameters mixed up. strstr is (haystack, needle) so you need strstr($address, $block). php.net/stristr. Rabin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php