note 43300 added to function.getenv

From: Date: Thu, 17 Jun 2004 01:53:28 +0000
Subject: note 43300 added to function.getenv
Groups: php.notes 
Request: Send a blank email to php-notes+get-71179@lists.php.net to get a copy of this message
There is an error in the code that I posted before. <?php foreach($ipStrings as $k1 => $ip) { foreach($private_net_ip_masks as $k2 => $pip) { if(strpos($ip, $pip) === 0) { // local ip unset($ipStrings[$k1]); // That should be $k1, not $k break; } } } ?> Sorry for any confusion that might have caused. ---- Manual Page -- http://www.php.net/manual/en/function.getenv.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+43300 Delete -- http://master.php.net/manage/user-notes.php?action=delete+43300&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+43300&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#71179) next »