note 109980 added to function.ip2long

From: Date: Fri, 07 Sep 2012 17:48:04 +0000
Subject: note 109980 added to function.ip2long
Groups: php.notes 
Request: Send a blank email to php-notes+get-190573@lists.php.net to get a copy of this message
Small mhakopian's function modofication: function isIpRange($aStart, $aEnd = null, $aIP = null) { if($aIP === null) { $aIP = $_SERVER['REMOTE_ADDR']; } return ($aEnd === null) ? ($aEnd == $aIP) : (ip2long($aStart) <= ip2long($aIP) && ip2long($aEnd) >= ip2long($aIP)); } ---- Server IP: 69.147.83.197 Probable Submitter: 89.176.36.109 ---- Manual Page -- http://www.php.net/manual/en/function.ip2long.php Edit -- https://master.php.net/note/edit/109980 Del: integrated -- https://master.php.net/note/delete/109980/integrated Del: useless -- https://master.php.net/note/delete/109980/useless Del: bad code -- https://master.php.net/note/delete/109980/bad+code Del: spam -- https://master.php.net/note/delete/109980/spam Del: non-english -- https://master.php.net/note/delete/109980/non-english Del: in docs -- https://master.php.net/note/delete/109980/in+docs Del: other reasons-- https://master.php.net/note/delete/109980 Reject -- https://master.php.net/note/reject/109980 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#190573) next »