Would that not pull the IP address of the user AT the page?
I am trying to create a search function so when I get an abuse email about a certain IP address, I can plug in the IP on a form and the php will return back which system that IP address belongs to.
I've been throwing code together. None of this is functional as of yet, but its my "building blocks"
<?php
$ip = "24.206.158.255";
$long = ip2long($ip);
if ($long === -1) {
print "Invalid IP, please try again";
} else {
}
php?>
<?
$start="416186368";
$end="416194303";
foreach( range((int) $start, (int) $end) as $number ) {
print "$number<br>";
}
?>
If I could convert the IP address into a long number and make an array that includes a range of numbers .. start to end and then assign that array to a "system" Then the php script could return the "system" name if longip is in that array
Does that make sense?