note 88345 added to function.ip2long

From: Date: Tue, 20 Jan 2009 21:19:22 +0000
Subject: note 88345 added to function.ip2long
Groups: php.notes 
Request: Send a blank email to php-notes+get-149555@lists.php.net to get a copy of this message
Convert IP to unsigned long //$strIP : IP in String-format //$lngIP : IP in unsigned long if (($lngIP=ip2long($strIP)) < 0){ $lngIP += 4294967296 ;} // ADD 2^32 thats all. ---- Server IP: 217.13.201.10 Probable Submitter: 79.204.68.168 ---- Manual Page -- http://www.php.net/manual/en/function.ip2long.php Edit -- https://master.php.net/note/edit/88345 Del: integrated -- https://master.php.net/note/delete/88345/integrated Del: useless -- https://master.php.net/note/delete/88345/useless Del: bad code -- https://master.php.net/note/delete/88345/bad+code Del: spam -- https://master.php.net/note/delete/88345/spam Del: non-english -- https://master.php.net/note/delete/88345/non-english Del: in docs -- https://master.php.net/note/delete/88345/in+docs Del: other reasons-- https://master.php.net/note/delete/88345 Reject -- https://master.php.net/note/reject/88345 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#149555) next »