note 43300 deleted from function.getenv by vincent

From: Date: Thu, 17 Jun 2004 07:26:09 +0000
Subject: note 43300 deleted from function.getenv by vincent
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-71201@lists.php.net to get a copy of this message
Note Submitter: php@isaacschlueter.com ---- 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.

« previous php.notes (#71201) next »